Skip to contentSkip to conversation

Fix Xen API Host.get_record method

PATCH New Jim Fehlig 1 participant 1 message May 3, 2007

lore
Share & tools
lore

Jim Fehlig

author
#0 lore raw

PATCH 1/1 Fix Xen API Host.get_record method

Host.get_record returns supported_bootloaders as a string instead of 'string set' per the spec. The c-bindings, honoring the spec, fail to parse response. Trivial fix attached.

Regards,
Jim

# HG changeset patch
# User Jim Fehlig <[email protected]>
# Date 1178235218 21600
# Node ID 6efe4b58684fa506763e0104d4f603ec45a16b4d # Parent 3a5722420de74aafbe3e11e0faad501c7babe3e4 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.

tools/python/xen/xend/XendAPI.py +1 -1
diff -r 3a5722420de7 -r 6efe4b58684f 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)
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel