Ignore:
Timestamp:
Jun 29, 2008, 12:40:18 AM (16 years ago)
Author:
price
Message:

web: say where a VM is running

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/controls.py

    r629 r662  
    196196    status = parseStatus(value_string)
    197197    return status
     198
     199def listHost(machine):
     200    """Return the host a machine is running on"""
     201    out, err = remctl('control', machine.name, 'listhost', err=True)
     202    if err:
     203        return None
     204    return out
    198205
    199206def deleteVM(machine):
Note: See TracChangeset for help on using the changeset viewer.