diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-04-12 06:35:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 06:35:14 -0500 |
commit | 9ba1fde05566fb7ae188e2b06aef89e6bab723eb (patch) | |
tree | c2cb28ac4a1a57c10dc2d4269241facffa7e456b /roles/openshift_health_checker/openshift_checks | |
parent | 5ffbb64bb6172a22392497d91424d45bc9b906a8 (diff) | |
parent | daebc9f0848ffd875ccfe9e2f0e6e919a4f83516 (diff) | |
download | openshift-9ba1fde05566fb7ae188e2b06aef89e6bab723eb.tar.gz openshift-9ba1fde05566fb7ae188e2b06aef89e6bab723eb.tar.bz2 openshift-9ba1fde05566fb7ae188e2b06aef89e6bab723eb.tar.xz openshift-9ba1fde05566fb7ae188e2b06aef89e6bab723eb.zip |
Merge pull request #3757 from juanvallejo/jvallejo/skip-yum-update-check-on-fedora
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks')
-rw-r--r-- | roles/openshift_health_checker/openshift_checks/package_availability.py | 4 |
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=[]) |