aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-05-05 11:23:55 +0100
committerKeir Fraser <keir@xensource.com>2007-05-05 11:23:55 +0100
commit90829b52d70dab3e69deba038c1b76b722435e0c (patch)
tree2cab8291ce46fa389eca86d952bb4967424d5e6f
parent5ea167dcd7bb8a8fe27b11739edf267463580bfc (diff)
downloadxen-90829b52d70dab3e69deba038c1b76b722435e0c.tar.gz
xen-90829b52d70dab3e69deba038c1b76b722435e0c.tar.bz2
xen-90829b52d70dab3e69deba038c1b76b722435e0c.zip
Fix Xen API's Host.get_record method.
Currently it returns supported_bootloaders as a string. This patch returns supported_bootloaders as a 'string set' - per the spec. The c-bindings fail to parse response, expecting a set but only finding a string. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
-rw-r--r--tools/python/xen/xend/XendAPI.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py
index a2e1638c52..cb644ad0f9 100644
--- a/tools/python/xen/xend/XendAPI.py
+++ b/tools/python/xen/xend/XendAPI.py
@@ -1009,7 +1009,7 @@ class XendAPI(object):
'cpu_configuration': node.get_cpu_configuration(),
'metrics': node.host_metrics_uuid,
'capabilities': node.get_capabilities(),
- 'supported_bootloaders': 'pygrub',
+ 'supported_bootloaders': ['pygrub'],
'sched_policy': node.get_vcpus_policy()}
return xen_api_success(record)