Fix spacing in opcode documentation generation
[ganeti-local] / qa / qa_monitoring.py
index d6a2709..90bc1b9 100644 (file)
@@ -24,6 +24,7 @@
 """
 
 from ganeti import _autoconf
+from ganeti import constants
 
 import qa_config
 
@@ -38,6 +39,13 @@ def TestInstStatusCollector():
   """Test the Xen instance status collector.
 
   """
+  enabled_hypervisors = qa_config.GetEnabledHypervisors()
+
+  is_xen = (constants.HT_XEN_PVM in enabled_hypervisors or
+            constants.HT_XEN_HVM in enabled_hypervisors)
+  if not is_xen:
+    return
+
   # Execute on master on an empty cluster
   AssertCommand([MON_COLLECTOR, "inst-status-xen"])