summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-07-28 14:38:41 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-07-28 14:38:46 +0200
commit186782e353928eba6374d688dc5b50278af00629 (patch)
treed9fcd1ea47e78807178e0a2258ec18ef7e024834 /roles/openshift_version
parentf0abc3268bcc0f33cd6539d870c6231d4028082d (diff)
downloadopenshift-186782e353928eba6374d688dc5b50278af00629.tar.gz
openshift-186782e353928eba6374d688dc5b50278af00629.tar.bz2
openshift-186782e353928eba6374d688dc5b50278af00629.tar.xz
openshift-186782e353928eba6374d688dc5b50278af00629.zip
Set the openshift_version from the openshift.common.version in case it is empty
It can happen the openshift_version is set to an empty string. Which results in openshift_pkg_version set to "-". Thus, failing installation of base and excluder packages. For more info see https://bugzilla.redhat.com/show_bug.cgi?id=1474871
Diffstat (limited to 'roles/openshift_version')
-rw-r--r--roles/openshift_version/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml
index f4cb8ddb2..a6b8a40c8 100644
--- a/roles/openshift_version/tasks/main.yml
+++ b/roles/openshift_version/tasks/main.yml
@@ -81,7 +81,7 @@
openshift_version: "{{ openshift.common.version }}"
when:
- openshift.common.version is defined
- - openshift_version is not defined
+ - openshift_version is not defined or openshift_version == ""
- openshift_protect_installed_version | bool
# The rest of these tasks should only execute on