mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
only add tunnel to list if it gets set up
This commit is contained in:
parent
545ca65930
commit
63fd8c3e2f
1 changed files with 1 additions and 1 deletions
|
@ -200,9 +200,9 @@ def vm_console(vmid):
|
|||
print("Creating SSH tunnel to {} for VM {}.".format(node, vmid))
|
||||
try:
|
||||
tunnel = start_ssh_tunnel(node, port)
|
||||
ssh_tunnels.append(tunnel)
|
||||
except:
|
||||
print('SSH tunnel already exists.')
|
||||
ssh_tunnels.append(tunnel)
|
||||
start_vm_vnc(proxmox, vmid)
|
||||
return token, 200
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue