From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: [PATCH] [xend] Fix Xen API Host.get_record method Date: Thu, 03 May 2007 17:41:48 -0600 Message-ID: <463A733C.90203@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050307000801000608090204" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------050307000801000608090204 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------050307000801000608090204 Content-Type: text/x-patch; name="xend_host_record.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xend_host_record.patch" # HG changeset patch # User Jim Fehlig # 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. Signed-off-by: Jim Fehlig diff -r 3a5722420de7 -r 6efe4b58684f tools/python/xen/xend/XendAPI.py --- a/tools/python/xen/xend/XendAPI.py Thu May 03 19:25:47 2007 +0100 +++ b/tools/python/xen/xend/XendAPI.py Thu May 03 17:33:38 2007 -0600 @@ -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) --------------050307000801000608090204 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------050307000801000608090204--