Ignore:
Timestamp:
Jun 2, 2008, 1:48:27 AM (16 years ago)
Author:
ecprice
Message:

Avoid a second remctl to determine whether ice3 is up

File:
1 edited

Legend:

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

    r550 r554  
    138138    return machine
    139139
    140 def getList(machines):
    141     """Return a dictionary mapping machine to dicts."""
     140def getList():
     141    """Return a dictionary mapping machine names to dicts."""
    142142    value_string = remctl('web', 'listvms')
    143143    value_dict = yaml.safe_load(value_string)
    144 
    145     d = dict((m, value_dict[m.name]) for m in machines if m.name in value_dict)
    146     return d
     144    return value_dict
    147145
    148146def parseStatus(s):
Note: See TracChangeset for help on using the changeset viewer.