diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-08-23 10:47:41 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-08-23 10:47:41 -0300 |
commit | c908f5aac957b4798681107b30f549ca536c3bbd (patch) | |
tree | c9e4ecd89066a4ea86d9c857624846655257ed2b /roles/openshift_version/tasks | |
parent | 3e6d4304dfe8b5c0a643ea61addd43f7c60a52b6 (diff) | |
download | openshift-c908f5aac957b4798681107b30f549ca536c3bbd.tar.gz openshift-c908f5aac957b4798681107b30f549ca536c3bbd.tar.bz2 openshift-c908f5aac957b4798681107b30f549ca536c3bbd.tar.xz openshift-c908f5aac957b4798681107b30f549ca536c3bbd.zip |
Better error if no OpenShift RPMs are available.
Diffstat (limited to 'roles/openshift_version/tasks')
-rw-r--r-- | roles/openshift_version/tasks/main.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml index 6e5d2b22c..a3a99d248 100644 --- a/roles/openshift_version/tasks/main.yml +++ b/roles/openshift_version/tasks/main.yml @@ -73,6 +73,10 @@ msg: openshift_version role was unable to set openshift_pkg_version when: openshift_pkg_version is not defined +- fail: + msg: "No OpenShift version available, please ensure your systems are fully registered and have access to appropriate yum repositories." + when: not is_containerized | bool and openshift_version == '0.0' + # We can't map an openshift_release to full rpm version like we can with containers, make sure # the rpm version we looked up matches the release requested and error out if not. - fail: |