aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTom Wilkie <tom.wilkie@gmail.com>2007-05-17 11:18:58 +0100
committerTom Wilkie <tom.wilkie@gmail.com>2007-05-17 11:18:58 +0100
commit61b5419d95879d204e0a51774a2605f8230d7a1e (patch)
treeea5084782d5684e893f93760f33ae26cdaba49b4 /tools
parent1b0a8bb57e3e0bab564147d2854062d924da5c42 (diff)
downloadxen-61b5419d95879d204e0a51774a2605f8230d7a1e.tar.gz
xen-61b5419d95879d204e0a51774a2605f8230d7a1e.tar.bz2
xen-61b5419d95879d204e0a51774a2605f8230d7a1e.zip
Fix recent XenRT Failure re: xm block-list via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendAPI.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py
index 8d3b1f169c..45f9e2bdb4 100644
--- a/tools/python/xen/xend/XendAPI.py
+++ b/tools/python/xen/xend/XendAPI.py
@@ -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]