ia64/xen-unstable

changeset 13209:3f24490932cd

Cope if a VIF is not attached to a network.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Dec 28 15:26:45 2006 +0000 (2006-12-28)
parents 5c268a24e44b
children 766eec31afab
files tools/python/xen/xend/XendNetwork.py
line diff
     1.1 --- a/tools/python/xen/xend/XendNetwork.py	Thu Dec 28 15:26:19 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendNetwork.py	Thu Dec 28 15:26:45 2006 +0000
     1.3 @@ -90,7 +90,7 @@ class XendNetwork:
     1.4              vifs = vm.get_vifs()
     1.5              for vif in vifs:
     1.6                  vif_cfg = vm.get_dev_xenapi_config('vif', vif)
     1.7 -                if vif_cfg['network'] == self.uuid:
     1.8 +                if vif_cfg.get('network') == self.uuid:
     1.9                      result.append(vif)
    1.10          return result
    1.11