actually use the right port when starting proxmox vnc session

This commit is contained in:
Jordan Rodgers 2018-02-12 23:46:50 -05:00
parent 63fd8c3e2f
commit be0cba852d

View file

@ -261,9 +261,8 @@ def change_vm_mem(proxmox, vmid, mem):
def start_vm_vnc(proxmox, vmid):
node = proxmox.nodes(get_vm_node(proxmox, vmid))
port = str(5900 + int(vmid))
node.qemu(vmid).monitor.post(
command="change vnc 127.0.0.1:{}".format(port))
command="change vnc 127.0.0.1:{}".format(vmid))
def get_isos(proxmox, storage):