Merge remote-tracking branch 'qubesos/pr/77'
* qubesos/pr/77: Don't catch AttributeError for is_outdated() call anymore Call is_outdated() on volume object, not name
This commit is contained in:
commit
e1aca0a393
@ -376,13 +376,10 @@ class VmUpdateInfoWidget(QtGui.QWidget):
|
|||||||
|
|
||||||
outdated_state = False
|
outdated_state = False
|
||||||
|
|
||||||
try:
|
for vol in vm.volumes.values():
|
||||||
for vol in vm.volumes:
|
if vol.is_outdated():
|
||||||
if vol.is_outdated():
|
outdated_state = "outdated"
|
||||||
outdated_state = "outdated"
|
break
|
||||||
break
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
if not outdated_state and getattr(vm, 'template', None)\
|
if not outdated_state and getattr(vm, 'template', None)\
|
||||||
and vm.template.is_running():
|
and vm.template.is_running():
|
||||||
|
Loading…
Reference in New Issue
Block a user