summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/mixins.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks/mixins.py')
-rw-r--r--roles/openshift_health_checker/openshift_checks/mixins.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/mixins.py b/roles/openshift_health_checker/openshift_checks/mixins.py
index 4e0415944..4029fba62 100644
--- a/roles/openshift_health_checker/openshift_checks/mixins.py
+++ b/roles/openshift_health_checker/openshift_checks/mixins.py
@@ -1,5 +1,5 @@
# pylint: disable=missing-docstring
-from openshift_checks import OpenShiftCheckException
+from openshift_checks import get_var
class NotContainerized(object):
@@ -18,7 +18,4 @@ class NotContainerized(object):
@staticmethod
def is_containerized(task_vars):
- try:
- return task_vars["openshift"]["common"]["is_containerized"]
- except (KeyError, TypeError):
- raise OpenShiftCheckException("'openshift.common.is_containerized' is undefined")
+ return get_var(task_vars, "openshift", "common", "is_containerized")