hvm: fix drive option parse

This commit is contained in:
Marek Marczykowski-Górecki 2014-03-01 15:17:17 +01:00
parent ab094a623a
commit 17e0a62a10

View File

@ -153,7 +153,7 @@ class QubesHVm(QubesVm):
drv_type = drv_type.lower()
# sanity check
if type not in ['hd', 'cdrom']:
if drv_type not in ['hd', 'cdrom']:
raise QubesException("Unsupported drive type: %s" % type)
if value.count(":") == 0: