Changeset 550


Ignore:
Timestamp:
Jun 1, 2008, 6:49:03 PM (16 years ago)
Author:
broder
Message:

Switch to using YAML on the web interface for listvms

File:
1 edited

Legend:

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

    r543 r550  
    1212import re
    1313import cache_acls
    14 import cPickle
     14import yaml
    1515
    1616# ... and stolen from xend/uuid.py
     
    140140def getList(machines):
    141141    """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)
    144144
    145145    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.