Changeset 1615 for trunk/packages/invirt-web
- Timestamp:
- Nov 11, 2008, 4:32:18 AM (16 years ago)
- Location:
- trunk/packages/invirt-web/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/controls.py
r1614 r1615 168 168 """Return the host a machine is running on""" 169 169 out, err = remctl('control', machine.name, 'listhost', err=True) 170 if err: 171 return None 172 return out.strip() 173 174 def vnctoken(machine): 175 """Return a time-stamped VNC token""" 176 out, err = remctl('control', machine.name, 'vnctoken') 170 177 if err: 171 178 return None -
trunk/packages/invirt-web/code/main.py
r1613 r1615 44 44 from invirt.config import structs as config 45 45 from invirt.common import InvalidInput, CodeError 46 from invirt.remctl import remctl47 46 48 47 def pathSplit(path): … … 248 247 machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine 249 248 250 token = control s.remctl('control', machine.name, 'vnctoken').strip()249 token = control.vnctoken(machine) 251 250 host = controls.listHost(machine) 252 251 if host:
Note: See TracChangeset
for help on using the changeset viewer.