dom0/qvm-prefs: fix 'drive' setting

Allow clear the property.
This commit is contained in:
Marek Marczykowski 2012-04-24 13:10:25 +02:00
parent a43fa8f06b
commit 3aedb8f363

View File

@ -284,6 +284,9 @@ def set_drive(vms, vm, args):
print >> sys.stderr, "Missing new drive content (file/device)!"
return False
if args[0] == '' or args[0].lower() == 'none':
vm.drive = None
else:
vm.drive = args[0]
return True