dom0/qvm-prefs: fix 'drive' setting
Allow clear the property.
This commit is contained in:
parent
a43fa8f06b
commit
3aedb8f363
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user