oops
[invirt/packages/invirt-web.git] / code / main.py
index 7af4ecc..03d7eb1 100755 (executable)
@@ -260,7 +260,7 @@ def vnc(username, state, path, fields):
     host = controls.listHost(machine)
     if host:
         port = 10003 + [config_host["hostname"] for config_host in invirt_config["hosts"]
-            ].index(controls.listHost(machine))
+            ].index(host)
     else:
         port = 5900 # dummy