summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
730dd3b)
svn path=/trunk/packages/sipb-xen-www/; revision=550
import time
import re
import cache_acls
import time
import re
import cache_acls
# ... and stolen from xend/uuid.py
def randomUUID():
# ... and stolen from xend/uuid.py
def randomUUID():
def getList(machines):
"""Return a dictionary mapping machine to dicts."""
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
d = dict((m, value_dict[m.name]) for m in machines if m.name in value_dict)
return d