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

Added libvirt connection status tag.

parent ca3a36aa
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,11 @@ from ccnode.utils import and_
from ccnode.hypervisor.lib import vir_tag
def vir_status(handl):
"""Local libvirt connection status."""
return {True: 'connected', False: 'disconnected'}[handl.virt_connected]
# hypervisor related tags
def htype():
"""Hypervisor type."""
......
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