From b9316bcd624d547862882741935ae378f11ce98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Thu, 11 Apr 2019 22:58:49 +0200 Subject: [PATCH] Fixed bug in Global Settings Incorrect handling of Check dom0 updates being set to false. fixes QubesOS/qubes-issues#4988 --- qubesmanager/global_settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/global_settings.py b/qubesmanager/global_settings.py index 5482516a..6170a0a8 100644 --- a/qubesmanager/global_settings.py +++ b/qubesmanager/global_settings.py @@ -239,8 +239,8 @@ def __init_updates__(self): self.dom0_updates_file_path = '/var/lib/qubes/updates/disable-updates' try: - self.updates_dom0_val = self.qvm_collection.domains[ - 'dom0'].features['service.qubes-update-check'] + self.updates_dom0_val = bool(self.qvm_collection.domains[ + 'dom0'].features['service.qubes-update-check']) except KeyError: self.updates_dom0_val =\ not os.path.isfile(self.dom0_updates_file_path)