direct-io.hg

changeset 15010:195e3dbba3ca

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>
author Keir Fraser <keir@xensource.com>
date Sat May 05 11:23:55 2007 +0100 (2007-05-05)
parents 3a5722420de7
children e370c94bd6fd
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Thu May 03 19:25:47 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Sat May 05 11:23:55 2007 +0100
     1.3 @@ -1009,7 +1009,7 @@ class XendAPI(object):
     1.4                    'cpu_configuration': node.get_cpu_configuration(),
     1.5                    'metrics': node.host_metrics_uuid,
     1.6                    'capabilities': node.get_capabilities(),
     1.7 -                  'supported_bootloaders': 'pygrub',
     1.8 +                  'supported_bootloaders': ['pygrub'],
     1.9                    'sched_policy': node.get_vcpus_policy()}
    1.10          return xen_api_success(record)
    1.11