Skip to content

Commit

Permalink
Merge remote-tracking branch 'qubesos/pr/77'
Browse files Browse the repository at this point in the history
* qubesos/pr/77:
  Don't catch AttributeError for is_outdated() call anymore
  Call is_outdated() on volume object, not name
  • Loading branch information
marmarek committed Mar 14, 2018
2 parents feeedb5 + 24dcb48 commit e1aca0a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions qubesmanager/table_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,10 @@ def update_outdated(self, vm):

outdated_state = False

try:
for vol in vm.volumes:
if vol.is_outdated():
outdated_state = "outdated"
break
except AttributeError:
pass
for vol in vm.volumes.values():
if vol.is_outdated():
outdated_state = "outdated"
break

if not outdated_state and getattr(vm, 'template', None)\
and vm.template.is_running():
Expand Down

0 comments on commit e1aca0a

Please sign in to comment.