Skip to content

Commit

Permalink
Fixed bug in Global Settings
Browse files Browse the repository at this point in the history
Incorrect handling of Check dom0 updates being set to false.

fixes QubesOS/qubes-issues#4988
  • Loading branch information
marmarta committed May 3, 2019
1 parent d340a62 commit b9316bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubesmanager/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b9316bc

Please sign in to comment.