svn path=/trunk/packages/sipb-xen-www/; revision=550
import time
import re
import cache_acls
-import cPickle
+import yaml
# ... and stolen from xend/uuid.py
def randomUUID():
def getList(machines):
"""Return a dictionary mapping machine to dicts."""
- value_string = remctl('web', 'listvms', '--pickle')
- value_dict = cPickle.loads(value_string)
+ value_string = remctl('web', 'listvms')
+ value_dict = yaml.safe_load(value_string)
d = dict((m, value_dict[m.name]) for m in machines if m.name in value_dict)
return d