[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Fix typo and make create send proper bools
# HG changeset patch # User Tom Wilkie <tom.wilkie@xxxxxxxxx> # Date 1176373877 -3600 # Node ID 38f3a6dedad62debcd97b47139ec8592f13e8054 # Parent 423c4a7b82e67262b973961f24405c80fd030635 Fix typo and make create send proper bools signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx> --- tools/python/xen/xm/create.dtd | 2 +- tools/python/xen/xm/xenapi_create.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff -r 423c4a7b82e6 -r 38f3a6dedad6 tools/python/xen/xm/create.dtd --- a/tools/python/xen/xm/create.dtd Thu Apr 12 08:02:38 2007 +0100 +++ b/tools/python/xen/xm/create.dtd Thu Apr 12 11:31:17 2007 +0100 @@ -95,7 +95,7 @@ src %URI; #REQUIRED type %VDI_TYPE; #REQUIRED size CDATA #REQUIRED - shareable CDATA #REQUIRED + sharable CDATA #REQUIRED read_only CDATA #REQUIRED> <!ELEMENT name (label, diff -r 423c4a7b82e6 -r 38f3a6dedad6 tools/python/xen/xm/xenapi_create.py --- a/tools/python/xen/xm/xenapi_create.py Thu Apr 12 08:02:38 2007 +0100 +++ b/tools/python/xen/xm/xenapi_create.py Thu Apr 12 11:31:17 2007 +0100 @@ -212,8 +212,8 @@ class xenapi_create: "SR": self.DEFAULT_STORAGE_REPOSITORY, "virtual_size": vdi.attributes["size"].value, "type": vdi.attributes["type"].value, - "shareable": vdi.attributes["shareable"].value, - "read_only": vdi.attributes["read_only"].value, + "sharable": bool(vdi.attributes["sharable"].value), + "read_only": bool(vdi.attributes["read_only"].value), "other_config": {"location": vdi.attributes["src"].value} } @@ -629,10 +629,10 @@ class sxp2xml: vdi.attributes["src"] = src vdi.attributes["read_only"] \ = (get_child_by_name(vbd_sxp, "mode") != "w") \ - and "true" or "false" + and "True" or "False" vdi.attributes["size"] = '-1' vdi.attributes["type"] = "system" - vdi.attributes["shareable"] = "false" + vdi.attributes["sharable"] = "False" vdi.attributes["name"] = name vdi.appendChild(self.make_name_tag(name, document)) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |