List all machines in admin mode, even if you can't do anything
[invirt/packages/invirt-web.git] / code / main.py
index cd37c0e..70e8912 100755 (executable)
@@ -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)