qubes: fix handling DEFAULT special value for VMProperty

This commit is contained in:
Marek Marczykowski-Górecki 2016-04-07 12:03:40 +02:00 committed by Wojtek Porczyk
parent 267a78e4e0
commit c17f86e659

View File

@ -1072,6 +1072,10 @@ class VMProperty(property):
def __set__(self, instance, value):
if value is self.__class__.DEFAULT:
self.__delete__(instance)
return
if value == self._none_value:
value = None
if value is None: