Skip to contentSkip to conversation

xend: Fix error handling in device_create()

PATCH New Yosuke Iwamatsu 1 participant 1 message Jan 6, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xend: Fix error handling in device_create()

This is a small fix of the error handling in device_create().

Regards,
-----------------------
Yosuke Iwamatsu
NEC Corporation

xend: Fix error handling in device_create().

tools/python/xen/xend/XendDomainInfo.py +1 -1
diff -r e2f36d066b7b tools/python/xen/xend/XendDomainInfo.py
@@ -675,7 +675,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':

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel