X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/cfed63e6644aa489939f40a1ceff5b41e847aeca..88448d9221a686ce71cb0f465888d84a1a6ece19:/code/main.py diff --git a/code/main.py b/code/main.py index cd37c0e..70e8912 100755 --- a/code/main.py +++ b/code/main.py @@ -246,7 +246,7 @@ def vnc(username, state, path, fields): """ machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine - token = controls.remctl('control', machine.name, 'vnctoken').strip() + token = controls.vnctoken(machine) host = controls.listHost(machine) if host: port = 10003 + [h.hostname for h in config.hosts].index(host)