prefs: handle 'none' value for guivm
This commit is contained in:
parent
6e76d1c928
commit
6b5e695f15
@ -117,7 +117,8 @@ def process_actions(parser, args, target):
|
||||
|
||||
if args.value is not None:
|
||||
if str(args.value).lower() == "none":
|
||||
if args.property in ["default_dispvm", "netvm", "template"]:
|
||||
if args.property in ["default_dispvm", "netvm", "template",
|
||||
"guivm"]:
|
||||
args.value = ''
|
||||
try:
|
||||
setattr(target, args.property, args.value)
|
||||
|
Loading…
Reference in New Issue
Block a user