Change "None" to Property None
This changes to accept the string none as the value None, as if an empty string was entered. This allows setting the netvm to "None" as described in QubesOS/qubes-issues#3942
This commit is contained in:
parent
b2a70f3794
commit
c0373980af
@ -275,6 +275,8 @@ class PropertyHolder(object):
|
||||
value = value.name
|
||||
if value is None:
|
||||
value = ''
|
||||
if str(value).lower() == "none":
|
||||
value = ''
|
||||
try:
|
||||
self.qubesd_call(
|
||||
self._method_dest,
|
||||
|
Loading…
Reference in New Issue
Block a user