summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/action_plugins
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-03-22 16:51:25 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-03-28 11:54:52 +0200
commit4b657031ff309cb8b004cd7fbd44ae479ce09432 (patch)
tree02ae81e04d39685cc2b6f8d95bbb1177f966caa7 /roles/openshift_health_checker/action_plugins
parent5e71e43a2a2e9089185d34e5406ee212cc478a75 (diff)
downloadopenshift-4b657031ff309cb8b004cd7fbd44ae479ce09432.tar.gz
openshift-4b657031ff309cb8b004cd7fbd44ae479ce09432.tar.bz2
openshift-4b657031ff309cb8b004cd7fbd44ae479ce09432.tar.xz
openshift-4b657031ff309cb8b004cd7fbd44ae479ce09432.zip
Test OpenShift health check loader
Diffstat (limited to 'roles/openshift_health_checker/action_plugins')
-rw-r--r--roles/openshift_health_checker/action_plugins/openshift_health_check.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/action_plugins/openshift_health_check.py b/roles/openshift_health_checker/action_plugins/openshift_health_check.py
index 027abf398..cf0fe19f1 100644
--- a/roles/openshift_health_checker/action_plugins/openshift_health_check.py
+++ b/roles/openshift_health_checker/action_plugins/openshift_health_check.py
@@ -17,7 +17,7 @@ from ansible.plugins.action import ActionBase
# this callback plugin.
sys.path.insert(1, os.path.dirname(os.path.dirname(__file__)))
-from openshift_checks import OpenShiftCheck, OpenShiftCheckException # noqa: E402
+from openshift_checks import OpenShiftCheck, OpenShiftCheckException, load_checks # noqa: E402
class ActionModule(ActionBase):
@@ -78,6 +78,8 @@ class ActionModule(ActionBase):
return result
def load_known_checks(self):
+ load_checks()
+
known_checks = {}
known_check_classes = set(cls for cls in OpenShiftCheck.subclasses())