ia64/xen-unstable

changeset 14492:92f14ace389c

Fix xm network-list through the Xen-API for managed domains.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Ewan Mellor <ewan@xensource.com>
date Tue Mar 20 17:34:34 2007 +0000 (2007-03-20)
parents 07d1bd92ade8
children 3fd9b0c71b8c
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Mar 20 17:33:35 2007 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Mar 20 17:34:34 2007 +0000
     1.3 @@ -1692,7 +1692,8 @@ def xm_network_list(args):
     1.4          vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom))
     1.5          vif_properties = \
     1.6              map(server.xenapi.VIF.get_runtime_properties, vif_refs)
     1.7 -        devs = map(lambda x: [x.get('handle'), map2sxp(x)], vif_properties)
     1.8 +        devs = map(lambda (handle, properties): [handle, map2sxp(properties)],
     1.9 +                   zip(range(len(vif_properties)), vif_properties))
    1.10      else:
    1.11          devs = server.xend.domain.getDeviceSxprs(dom, 'vif')
    1.12