summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/action_plugins
diff options
context:
space:
mode:
authorLuke Meyer <lmeyer@redhat.com>2017-09-08 12:07:41 -0400
committerLuke Meyer <lmeyer@redhat.com>2017-09-12 10:32:43 -0400
commit5f54a91de69bafa70fc4e2657c8bdd8a82c54f11 (patch)
tree4876181ae022a470de49bce0f044a31ecf5dcd29 /roles/openshift_health_checker/action_plugins
parent9fbd9c25e39eb4e03af71e16ae8184659b056c77 (diff)
downloadopenshift-5f54a91de69bafa70fc4e2657c8bdd8a82c54f11.tar.gz
openshift-5f54a91de69bafa70fc4e2657c8bdd8a82c54f11.tar.bz2
openshift-5f54a91de69bafa70fc4e2657c8bdd8a82c54f11.tar.xz
openshift-5f54a91de69bafa70fc4e2657c8bdd8a82c54f11.zip
openshift_health_check: allow disabling all checks
Can now set openshift_disable_check=* to disable all checks without needing to know their names. fixes bug 1462106 https://bugzilla.redhat.com/show_bug.cgi?id=1462106
Diffstat (limited to 'roles/openshift_health_checker/action_plugins')
-rw-r--r--roles/openshift_health_checker/action_plugins/openshift_health_check.py2
1 files changed, 1 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 8d35db6b5..d02a43655 100644
--- a/roles/openshift_health_checker/action_plugins/openshift_health_check.py
+++ b/roles/openshift_health_checker/action_plugins/openshift_health_check.py
@@ -187,7 +187,7 @@ def normalize(checks):
def run_check(name, check, user_disabled_checks):
"""Run a single check if enabled and return a result dict."""
- if name in user_disabled_checks:
+ if name in user_disabled_checks or '*' in user_disabled_checks:
return dict(skipped=True, skipped_reason="Disabled by user request")
# pylint: disable=broad-except; capturing exceptions broadly is intentional,