From: Anders Kaseorg Date: Mon, 2 Jun 2008 08:39:16 +0000 (-0400) Subject: TURBOYAML!!1 X-Git-Tag: sipb-xen-www/3.6~72 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/d2b87d29c70394a4d15ab17ce8caee91f835acb9 TURBOYAML!!1 svn path=/trunk/packages/sipb-xen-www/; revision=563 --- diff --git a/code/controls.py b/code/controls.py index e389823..d4afab0 100644 --- a/code/controls.py +++ b/code/controls.py @@ -140,7 +140,7 @@ def createVm(owner, contact, name, memory, disk_size, machine_type, cdrom, clone def getList(): """Return a dictionary mapping machine names to dicts.""" value_string = remctl('web', 'listvms') - value_dict = yaml.safe_load(value_string) + value_dict = yaml.load(value_string, yaml.CSafeLoader) return value_dict def parseStatus(s):