Changeset 554 for trunk/packages/sipb-xen-www/code/controls.py
- Timestamp:
- Jun 2, 2008, 1:48:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/controls.py
r550 r554 138 138 return machine 139 139 140 def getList( machines):141 """Return a dictionary mapping machine to dicts."""140 def getList(): 141 """Return a dictionary mapping machine names to dicts.""" 142 142 value_string = remctl('web', 'listvms') 143 143 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 147 145 148 146 def parseStatus(s):
Note: See TracChangeset
for help on using the changeset viewer.