mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
remove SSH tunnel and VNC stuff for deleted VMs
This commit is contained in:
parent
e608c0dc10
commit
3f03d9ab69
2 changed files with 14 additions and 2 deletions
|
@ -62,8 +62,8 @@ def add_vnc_target(port):
|
|||
|
||||
def delete_vnc_target(port):
|
||||
targets = get_vnc_targets()
|
||||
target = next((target for target in targets if target['port'] == port),
|
||||
None)
|
||||
target = next(
|
||||
(target for target in targets if target['port'] == str(port)), None)
|
||||
if target:
|
||||
targets.remove(target)
|
||||
target_file = open(app.config['WEBSOCKIFY_TARGET_FILE'], 'w')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue