Changeset 550 for trunk/packages
- Timestamp:
- Jun 1, 2008, 6:49:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/controls.py
r543 r550 12 12 import re 13 13 import cache_acls 14 import cPickle14 import yaml 15 15 16 16 # ... and stolen from xend/uuid.py … … 140 140 def getList(machines): 141 141 """Return a dictionary mapping machine to dicts.""" 142 value_string = remctl('web', 'listvms' , '--pickle')143 value_dict = cPickle.loads(value_string)142 value_string = remctl('web', 'listvms') 143 value_dict = yaml.safe_load(value_string) 144 144 145 145 d = dict((m, value_dict[m.name]) for m in machines if m.name in value_dict)
Note: See TracChangeset
for help on using the changeset viewer.