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