|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Fix xm network-list through the Xen-API f
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1174412074 0
# Node ID 92f14ace389cd7bdb3809c149e584aa331b92958
# Parent 07d1bd92ade8cde4ed6862d76f8a60309b539ec8
Fix xm network-list through the Xen-API for managed domains.
Signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
tools/python/xen/xm/main.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -r 07d1bd92ade8 -r 92f14ace389c tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Tue Mar 20 17:33:35 2007 +0000
+++ b/tools/python/xen/xm/main.py Tue Mar 20 17:34:34 2007 +0000
@@ -1692,7 +1692,8 @@ def xm_network_list(args):
vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom))
vif_properties = \
map(server.xenapi.VIF.get_runtime_properties, vif_refs)
- devs = map(lambda x: [x.get('handle'), map2sxp(x)], vif_properties)
+ devs = map(lambda (handle, properties): [handle, map2sxp(properties)],
+ zip(range(len(vif_properties)), vif_properties))
else:
devs = server.xend.domain.getDeviceSxprs(dom, 'vif')
_______________________________________________
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 xm network-list through the Xen-API for managed domains.,
Xen patchbot-unstable <=
|
|
|
|
|