prefs: handle 'none' value for guivm

This commit is contained in:
Frédéric Pierret (fepitre) 2019-11-10 10:12:58 +01:00
parent 6e76d1c928
commit 6b5e695f15
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -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)