xend: little fix for tap

Need get dev type after create tap device as device_create did.

Signed-off-by: Wei Kong <weikong.cn@gmail.com>
This commit is contained in:
Keir Fraser committed 2009-11-26 10:56:49 +00:00
1 parent 1a2c608279
commit f9abceac96
1 file changed
+2 -1
+2 -1
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.