WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix recent XenRT Failure re: xm block-lis

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix recent XenRT Failure re: xm block-list via XenAPI
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 May 2007 11:10:13 -0700
Delivery-date: Thu, 17 May 2007 11:09:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Tom Wilkie <tom.wilkie@xxxxxxxxx>
# Date 1179397138 -3600
# Node ID 11a97dca57aa4e2d0ebda5a9ec2d509372dcddd6
# Parent  6145e5508d6b5ff188df250fb9c97e3e47762005
Fix recent XenRT Failure re: xm block-list via XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 6145e5508d6b -r 11a97dca57aa tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Wed May 16 23:12:16 2007 +0100
+++ b/tools/python/xen/xend/XendAPI.py  Thu May 17 11:18:58 2007 +0100
@@ -1780,6 +1780,7 @@ class XendAPI(object):
                 return_cfg[k] = cfg[k]
 
         return_cfg['metrics'] = vbd_ref
+        return_cfg['runtime_properties'] = {} #todo
 
         return xen_api_success(return_cfg)
 
@@ -1849,7 +1850,7 @@ class XendAPI(object):
         try:
             devid = int(device['id'])
             device_sxps = dominfo.getDeviceSxprs('vbd')
-            device_dicts  = [dict(device_sxp[1][1:]) for device_sxp in 
device_sxps]
+            device_dicts  = [dict(device_sxp[1][0:]) for device_sxp in 
device_sxps]
             device_dict = [device_dict
                            for device_dict in device_dicts
                            if int(device_dict['virtual-device']) == devid][0]

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix recent XenRT Failure re: xm block-list via XenAPI, Xen patchbot-unstable <=