Skip to content
Snippets Groups Projects
Commit 90a97263 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix Domain not found exception handling.

parent 19341cdf
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ def _vir_tag(func):
# sometimes, libvirt tells us too late when a domain is removed
# we just ignore the error and remove the domain
dom.hypervisor.domains.pop(dom.name)
dom.tag_db.remove_sub_object(dom.name)
dom.hypervisor.handler.tag_db.remove_sub_object(dom.name)
return
logger.exception('Unexpected libvirt error')
dom.hypervisor.handler.virt_connect_restart()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment