When getting the authtoken in the web interface, call remctl from the
authorEvan Broder <broder@mit.edu>
Sat, 1 Nov 2008 01:12:24 +0000 (21:12 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 1 Nov 2008 01:12:24 +0000 (21:12 -0400)
right place

svn path=/trunk/packages/invirt-web/; revision=1469

code/main.py

index cfcbd5d..452a285 100755 (executable)
@@ -245,7 +245,7 @@ def vnc(username, state, path, fields):
     """
     machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine
 
     """
     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)
     host = controls.listHost(machine)
     if host:
         port = 10003 + [h.hostname for h in config.hosts].index(host)