From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yosuke Iwamatsu Subject: [PATCH] xend: Fix error handling in device_create() Date: Tue, 06 Jan 2009 19:23:43 +0900 Message-ID: <4963312F.9040403@ab.jp.nec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030404010506070605020703" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------030404010506070605020703 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit This is a small fix of the error handling in device_create(). Signed-off-by: Yosuke Iwamatsu Regards, ----------------------- Yosuke Iwamatsu NEC Corporation --------------030404010506070605020703 Content-Type: all/allfiles; name="device_create_error.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="device_create_error.patch" xend: Fix error handling in device_create(). Signed-off-by: Yosuke Iwamatsu diff -r e2f36d066b7b tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Mon Dec 22 13:48:40 2008 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Tue Jan 06 16:06:38 2009 +0900 @@ -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': --------------030404010506070605020703 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------030404010506070605020703--