Ignore:
Timestamp:
Nov 11, 2008, 4:32:18 AM (15 years ago)
Author:
broder
Message:

Pull the vnctoken remctl into the controls module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/controls.py

    r1614 r1615  
    168168    """Return the host a machine is running on"""
    169169    out, err = remctl('control', machine.name, 'listhost', err=True)
     170    if err:
     171        return None
     172    return out.strip()
     173
     174def vnctoken(machine):
     175    """Return a time-stamped VNC token"""
     176    out, err = remctl('control', machine.name, 'vnctoken')
    170177    if err:
    171178        return None
Note: See TracChangeset for help on using the changeset viewer.