mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-06 14:13:28 -06:00
connection: handle disappearing obj in agent handler
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
2ee2dda124
commit
dfb1f33040
@ -653,7 +653,7 @@ class vmmConnection(vmmGObject):
|
||||
# This event is triggered when deleting external snapshots and it changes
|
||||
# shutoff VM into paused and makes that VM unusable until virt-manager is
|
||||
# restarted so we need to ignore it in case VM is shutoff.
|
||||
if obj.is_shutoff(): # pragma: no cover
|
||||
if obj and obj.is_shutoff(): # pragma: no cover
|
||||
log.debug("received agent lifecycle event but domain is shutoff, ignoring it")
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user