Don't catch AttributeError for is_outdated() call anymore
This commit is contained in:
parent
774b3bb2c9
commit
24dcb4802e
@ -376,13 +376,10 @@ class VmUpdateInfoWidget(QtGui.QWidget):
|
||||
|
||||
outdated_state = False
|
||||
|
||||
try:
|
||||
for vol in vm.volumes.values():
|
||||
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():
|
||||
|
Loading…
Reference in New Issue
Block a user