From c17f86e65915987faa6382c784ba7be9f31f4730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 7 Apr 2016 12:03:40 +0200 Subject: [PATCH] qubes: fix handling DEFAULT special value for VMProperty --- qubes/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubes/__init__.py b/qubes/__init__.py index 9e7344a4..1a805cc6 100644 --- a/qubes/__init__.py +++ b/qubes/__init__.py @@ -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: