diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_health_checker/library/aos_version.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_health_checker/library/aos_version.py b/roles/openshift_health_checker/library/aos_version.py index 61ae749fa..0dd6606f8 100644 --- a/roles/openshift_health_checker/library/aos_version.py +++ b/roles/openshift_health_checker/library/aos_version.py @@ -130,6 +130,14 @@ def _retrieve_available_packages(expected_pkgs): pkgs = list(aquery.filter(name=expected_pkgs)) + if not pkgs: + # pkgs list is empty, raise because no expected packages found + raise AosVersionException('\n'.join([ + 'Unable to find any OpenShift packages.', + 'Check your subscription and repo settings.', + str(excinfo), + ])) + return pkgs |