diff options
author | Luke Meyer <lmeyer@redhat.com> | 2017-03-17 14:45:48 -0400 |
---|---|---|
committer | Luke Meyer <lmeyer@redhat.com> | 2017-03-20 10:46:14 -0400 |
commit | fc639e5c426384b2b6bedfe68e3f01b1cb52c6b8 (patch) | |
tree | 4f9c80589b0bc094d0ca5cdd1555b54be8e6f6d9 /roles/openshift_health_checker | |
parent | b6aa824eb212ff968cc4b925bb32c05ef2ebd61d (diff) | |
download | openshift-fc639e5c426384b2b6bedfe68e3f01b1cb52c6b8.tar.gz openshift-fc639e5c426384b2b6bedfe68e3f01b1cb52c6b8.tar.bz2 openshift-fc639e5c426384b2b6bedfe68e3f01b1cb52c6b8.tar.xz openshift-fc639e5c426384b2b6bedfe68e3f01b1cb52c6b8.zip |
preflight checks: bypass RPM excludes
Diffstat (limited to 'roles/openshift_health_checker')
-rwxr-xr-x | roles/openshift_health_checker/library/aos_version.py | 1 | ||||
-rwxr-xr-x | roles/openshift_health_checker/library/check_yum_update.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_health_checker/library/aos_version.py b/roles/openshift_health_checker/library/aos_version.py index 13b7d310b..191a4b107 100755 --- a/roles/openshift_health_checker/library/aos_version.py +++ b/roles/openshift_health_checker/library/aos_version.py @@ -32,6 +32,7 @@ def main(): # pylint: disable=missing-docstring,too-many-branches bail("prefix must not be empty") yb = yum.YumBase() # pylint: disable=invalid-name + yb.conf.disable_excludes = ["all"] # assume the openshift excluder will be managed, ignore current state # search for package versions available for aos pkgs expected_pkgs = [ diff --git a/roles/openshift_health_checker/library/check_yum_update.py b/roles/openshift_health_checker/library/check_yum_update.py index 9bc14fd47..630ebc848 100755 --- a/roles/openshift_health_checker/library/check_yum_update.py +++ b/roles/openshift_health_checker/library/check_yum_update.py @@ -27,6 +27,7 @@ def main(): # pylint: disable=missing-docstring,too-many-branches module.fail_json(msg=error) yb = yum.YumBase() # pylint: disable=invalid-name + yb.conf.disable_excludes = ["all"] # assume the openshift excluder will be managed, ignore current state # determine if the existing yum configuration is valid try: yb.repos.populateSack(mdtype='metadata', cacheonly=1) |