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:
jimtahu 2018-06-07 17:52:37 -05:00
parent b2a70f3794
commit c0373980af
No known key found for this signature in database
GPG Key ID: 2732DBEC0BE2336C

View File

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