svn path=/trunk/packages/sipb-xen-www/; revision=797
token = {'data': pickled_data, 'digest': m.digest()}
token = cPickle.dumps(token)
token = base64.urlsafe_b64encode(token)
token = {'data': pickled_data, 'digest': m.digest()}
token = cPickle.dumps(token)
token = base64.urlsafe_b64encode(token)
- port = 10003 + [config_host["hostname"] for config_host in invirt_config["hosts"]
- ].index(controls.listHost(machine))
+ host = controls.listHost(machine)
+ if host:
+ port = 10003 + [config_host["hostname"] for config_host in invirt_config["hosts"]
+ ].index(controls.listHost(machine))
+ else:
+ port = 5900 # dummy
status = controls.statusInfo(machine)
has_vnc = hasVnc(status)
status = controls.statusInfo(machine)
has_vnc = hasVnc(status)