X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/0395f472d9214d2d39ae8e0079908f092adf9fb6..bf27ca1d371e1bb6b49c7e7d47438985e1399d24:/code/main.py?ds=sidebyside diff --git a/code/main.py b/code/main.py index cfcbd5d..452a285 100755 --- a/code/main.py +++ b/code/main.py @@ -245,7 +245,7 @@ def vnc(username, state, path, fields): """ machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine - token = remctl('control', machine.name, 'vnctoken') + token = controls.remctl('control', machine.name, 'vnctoken') host = controls.listHost(machine) if host: port = 10003 + [h.hostname for h in config.hosts].index(host)