mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 13:01:51 +00:00
lint
This commit is contained in:
parent
19b508fe2e
commit
240001c357
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ def vm_power(vmid, action):
|
|||
try:
|
||||
vnc_token = redis_conn.get(vnc_token_key).decode('utf-8')
|
||||
except AttributeError as e:
|
||||
print(f'Warning: Could not get vnc_token during {action}:{e}. Going to attempt anyway. Likely, someone never opened a VNC session.')
|
||||
print(
|
||||
f'Warning: Could not get vnc_token during {action}:{e}. {action} is still being performed.'
|
||||
)
|
||||
if action == 'start':
|
||||
vmconfig = vm.config
|
||||
usage_check = user.check_usage(vmconfig['cores'], vmconfig['memory'], 0)
|
||||
|
|
Loading…
Reference in a new issue