svn path=/trunk/packages/invirt-web/; revision=1578
"""
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 = controls.remctl('control', machine.name, 'vnctoken')
+ token = controls.remctl('control', machine.name, 'vnctoken').strip()
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)