Loading ccnode/hypervisor/tags.py +5 −0 Original line number Diff line number Diff line Loading @@ -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.""" Loading Loading
ccnode/hypervisor/tags.py +5 −0 Original line number Diff line number Diff line Loading @@ -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.""" Loading