mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Fix 15435:ab95b9764b20.
The changeset did not consider about ":cdrom" and "ioemu:" of a disk definition. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
d0e4f15cfd
commit
4cb346f848
1 file changed
+7
@@ -936,6 +936,13 @@ class XendConfig(dict):
|
||||
return sxpr
|
||||
|
||||
def _blkdev_name_to_number(self, dev):
|
||||
if 'ioemu:' in dev:
|
||||
_, dev = dev.split(':', 1)
|
||||
try:
|
||||
dev, _ = dev.split(':', 1)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
try:
|
||||
devid = int(dev)
|
||||
except ValueError:
|
||||
|
||||