|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Cope if a VIF is not attached to a networ
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1167319605 0
# Node ID 3f24490932cd6e76983bfee12206b14254f2c3cd
# Parent 5c268a24e44bddc1c21a8a47598b78c076f99178
Cope if a VIF is not attached to a network.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
tools/python/xen/xend/XendNetwork.py | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 5c268a24e44b -r 3f24490932cd tools/python/xen/xend/XendNetwork.py
--- a/tools/python/xen/xend/XendNetwork.py Thu Dec 28 15:26:19 2006 +0000
+++ b/tools/python/xen/xend/XendNetwork.py Thu Dec 28 15:26:45 2006 +0000
@@ -90,7 +90,7 @@ class XendNetwork:
vifs = vm.get_vifs()
for vif in vifs:
vif_cfg = vm.get_dev_xenapi_config('vif', vif)
- if vif_cfg['network'] == self.uuid:
+ if vif_cfg.get('network') == self.uuid:
result.append(vif)
return result
_______________________________________________
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] Cope if a VIF is not attached to a network.,
Xen patchbot-unstable <=
|
|
|
|
|