diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-03-22 16:51:25 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-03-28 11:54:52 +0200 |
commit | 4b657031ff309cb8b004cd7fbd44ae479ce09432 (patch) | |
tree | 02ae81e04d39685cc2b6f8d95bbb1177f966caa7 /roles/openshift_health_checker/action_plugins | |
parent | 5e71e43a2a2e9089185d34e5406ee212cc478a75 (diff) | |
download | openshift-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.py | 4 |
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()) |