diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-01-09 16:21:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-09 16:21:15 -0500 |
commit | 034edf02bc4cf5c3859e1f9209233e5c7c959e03 (patch) | |
tree | ab73c4f903bdbb2260df28c8b2985df80470a3aa /roles/openshift_version | |
parent | c6c7ce0266d148149e46d5014534df70b91e2aca (diff) | |
parent | 4186b4742b9329f7aa9385556ffede3f4b5c93f1 (diff) | |
download | openshift-034edf02bc4cf5c3859e1f9209233e5c7c959e03.tar.gz openshift-034edf02bc4cf5c3859e1f9209233e5c7c959e03.tar.bz2 openshift-034edf02bc4cf5c3859e1f9209233e5c7c959e03.tar.xz openshift-034edf02bc4cf5c3859e1f9209233e5c7c959e03.zip |
Merge pull request #3055 from abutcher/openshift_image_tag=latest
Fix openshift_image_tag=latest.
Diffstat (limited to 'roles/openshift_version')
-rw-r--r-- | roles/openshift_version/tasks/set_version_containerized.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/openshift_version/tasks/set_version_containerized.yml b/roles/openshift_version/tasks/set_version_containerized.yml index 718537287..cd0f20ae9 100644 --- a/roles/openshift_version/tasks/set_version_containerized.yml +++ b/roles/openshift_version/tasks/set_version_containerized.yml @@ -1,8 +1,9 @@ --- - name: Set containerized version to configure if openshift_image_tag specified set_fact: - # Expects a leading "v" in inventory, strip it off here: - openshift_version: "{{ openshift_image_tag[1:].split('-')[0] }}" + # Expects a leading "v" in inventory, strip it off here unless + # openshift_image_tag=latest + openshift_version: "{{ openshift_image_tag[1:].split('-')[0] if openshift_image_tag != 'latest' else openshift_image_tag }}" when: openshift_image_tag is defined and openshift_version is not defined - name: Set containerized version to configure if openshift_release specified |