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:
Ian Campbell committed 2007-07-02 08:42:13 +01:00
1 parent d0e4f15cfd
commit 4cb346f848
1 file changed
+7
+7
View File
@@ -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:
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.