qubes: fix handling DEFAULT special value for VMProperty
This commit is contained in:
parent
267a78e4e0
commit
c17f86e659
@ -1072,6 +1072,10 @@ class VMProperty(property):
|
|||||||
|
|
||||||
|
|
||||||
def __set__(self, instance, value):
|
def __set__(self, instance, value):
|
||||||
|
if value is self.__class__.DEFAULT:
|
||||||
|
self.__delete__(instance)
|
||||||
|
return
|
||||||
|
|
||||||
if value == self._none_value:
|
if value == self._none_value:
|
||||||
value = None
|
value = None
|
||||||
if value is None:
|
if value is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user