summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/mixins.py
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-06-14 20:08:13 -0400
committerGitHub <noreply@github.com>2017-06-14 20:08:13 -0400
commit7986d8bfa10d6ba3c968ab1dae277063ab612ecb (patch)
tree736f9fc2d40b32521f657feb6bc31eae0acca83d /roles/openshift_health_checker/openshift_checks/mixins.py
parent916ea2cadd358e443f57963312a7c22f96d9cd2f (diff)
parentf19d2747ed9cc40f6eb68f2383f44f268c5a431a (diff)
downloadopenshift-7986d8bfa10d6ba3c968ab1dae277063ab612ecb.tar.gz
openshift-7986d8bfa10d6ba3c968ab1dae277063ab612ecb.tar.bz2
openshift-7986d8bfa10d6ba3c968ab1dae277063ab612ecb.tar.xz
openshift-7986d8bfa10d6ba3c968ab1dae277063ab612ecb.zip
Merge pull request #4397 from sosiouxme/20170608-include-more-install-checks
Merged by openshift-bot
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, 5 insertions, 2 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/mixins.py b/roles/openshift_health_checker/openshift_checks/mixins.py
index 7f3d78cc4..2cb2e21aa 100644
--- a/roles/openshift_health_checker/openshift_checks/mixins.py
+++ b/roles/openshift_health_checker/openshift_checks/mixins.py
@@ -40,8 +40,11 @@ class DockerHostMixin(object):
# NOTE: we would use the "package" module but it's actually an action plugin
# and it's not clear how to invoke one of those. This is about the same anyway:
- pkg_manager = get_var(task_vars, "ansible_pkg_mgr", default="yum")
- result = self.module_executor(pkg_manager, {"name": self.dependencies, "state": "present"}, task_vars)
+ result = self.execute_module(
+ get_var(task_vars, "ansible_pkg_mgr", default="yum"),
+ {"name": self.dependencies, "state": "present"},
+ task_vars=task_vars,
+ )
msg = result.get("msg", "")
if result.get("failed"):
if "No package matching" in msg: