mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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:
1 parent
1a2c608279
commit
f9abceac96
1 file changed
+2
-1
@@ -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:
|
||||
|
||||