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

Fixed vm tags.

Some tags were returning None because of bad decorator.
parent 8745ef8d
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ def _vir_tag(func): ...@@ -22,7 +22,7 @@ def _vir_tag(func):
if not dom.hypervisor.handler.virt_connected: if not dom.hypervisor.handler.virt_connected:
return return
try: try:
func(dom) return func(dom)
except libvirt.libvirtError: except libvirt.libvirtError:
logger.exception('Unexpected libvirt error') logger.exception('Unexpected libvirt error')
dom.hypervisor.handler.virt_connect_restart() 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