From: Keir Fraser Date: Tue, 6 Jan 2009 14:01:39 +0000 (+0000) Subject: xend: Fix error handling in device_create(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14019^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=15c5bb9f9236380bb689e3073e18290e9783cea3;p=xen.git xend: Fix error handling in device_create(). Signed-off-by: Yosuke Iwamatsu --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 72f718398d..3e5fd59c19 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -726,7 +726,7 @@ class XendDomainInfo: if dev_type == 'pci': for dev in dev_config_dict['devs']: XendAPIStore.deregister(dev['uuid'], 'DPCI') - if dev_type == 'vscsi': + elif dev_type == 'vscsi': for dev in dev_config_dict['devs']: XendAPIStore.deregister(dev['uuid'], 'DSCSI') elif dev_type == 'tap':