summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/package_availability.py
diff options
context:
space:
mode:
authorjuanvallejo <jvallejo@redhat.com>2017-03-23 16:12:53 -0400
committerjuanvallejo <jvallejo@redhat.com>2017-04-11 10:33:46 -0400
commitdaebc9f0848ffd875ccfe9e2f0e6e919a4f83516 (patch)
tree27c9da356a9144bdcc4e62cbf64605e2d91020f5 /roles/openshift_health_checker/openshift_checks/package_availability.py
parent4ebf81f1d1b3a1277c1f3cae784882edbe183fe5 (diff)
downloadopenshift-daebc9f0848ffd875ccfe9e2f0e6e919a4f83516.tar.gz
openshift-daebc9f0848ffd875ccfe9e2f0e6e919a4f83516.tar.bz2
openshift-daebc9f0848ffd875ccfe9e2f0e6e919a4f83516.tar.xz
openshift-daebc9f0848ffd875ccfe9e2f0e6e919a4f83516.zip
skip PackageAvailability check if not yum
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks/package_availability.py')
-rw-r--r--roles/openshift_health_checker/openshift_checks/package_availability.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/package_availability.py b/roles/openshift_health_checker/openshift_checks/package_availability.py
index 9891972a6..a7eb720fd 100644
--- a/roles/openshift_health_checker/openshift_checks/package_availability.py
+++ b/roles/openshift_health_checker/openshift_checks/package_availability.py
@@ -9,6 +9,10 @@ class PackageAvailability(NotContainerizedMixin, OpenShiftCheck):
name = "package_availability"
tags = ["preflight"]
+ @classmethod
+ def is_active(cls, task_vars):
+ return super(PackageAvailability, cls).is_active(task_vars) and task_vars["ansible_pkg_mgr"] == "yum"
+
def run(self, tmp, task_vars):
rpm_prefix = get_var(task_vars, "openshift", "common", "service_type")
group_names = get_var(task_vars, "group_names", default=[])