[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH][resend] xend: Fix regression when create_vbd for tap
Need get dev type after create tap device as device_create did. Signed-off-by: Wei Kong <weikong.cn@gmail.com> --- a/tools/python/xen/xend/XendDomainInfo.pyÂÂÂÂ 2009-11-25 19:10:51.000000000 +0800 +++ b/tools/python/xen/xend/XendDomainInfo.pyÂÂÂÂ 2009-11-25 19:20:26.000000000 +0800 @@ -3840,7 +3840,8 @@ class XendDomainInfo: ÂÂÂÂÂÂÂÂÂÂÂÂ try: ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ devid = dev_control.createDevice(config) -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ dev_control.waitForDevice(devid) +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ dev_type = self.getBlockDeviceClass(devid) +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ self._waitForDevice(dev_type, devid) ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ self.info.device_update(dev_uuid, ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ cfg_xenapi = {'devid': devid}) ÂÂÂÂÂÂÂÂÂÂÂÂ except Exception, exn: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |