ia64/xen-unstable

changeset 15176:11a97dca57aa

Fix recent XenRT Failure re: xm block-list via XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Thu May 17 11:18:58 2007 +0100 (2007-05-17)
parents 6145e5508d6b
children 089696e0c603
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Wed May 16 23:12:16 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Thu May 17 11:18:58 2007 +0100
     1.3 @@ -1780,6 +1780,7 @@ class XendAPI(object):
     1.4                  return_cfg[k] = cfg[k]
     1.5  
     1.6          return_cfg['metrics'] = vbd_ref
     1.7 +        return_cfg['runtime_properties'] = {} #todo
     1.8  
     1.9          return xen_api_success(return_cfg)
    1.10  
    1.11 @@ -1849,7 +1850,7 @@ class XendAPI(object):
    1.12          try:
    1.13              devid = int(device['id'])
    1.14              device_sxps = dominfo.getDeviceSxprs('vbd')
    1.15 -            device_dicts  = [dict(device_sxp[1][1:]) for device_sxp in device_sxps]
    1.16 +            device_dicts  = [dict(device_sxp[1][0:]) for device_sxp in device_sxps]
    1.17              device_dict = [device_dict
    1.18                             for device_dict in device_dicts
    1.19                             if int(device_dict['virtual-device']) == devid][0]