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))
|
print("Creating SSH tunnel to {} for VM {}.".format(node, vmid))
|
||||||
try:
|
try:
|
||||||
tunnel = start_ssh_tunnel(node, port)
|
tunnel = start_ssh_tunnel(node, port)
|
||||||
|
ssh_tunnels.append(tunnel)
|
||||||
except:
|
except:
|
||||||
print('SSH tunnel already exists.')
|
print('SSH tunnel already exists.')
|
||||||
ssh_tunnels.append(tunnel)
|
|
||||||
start_vm_vnc(proxmox, vmid)
|
start_vm_vnc(proxmox, vmid)
|
||||||
return token, 200
|
return token, 200
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue