summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version/tasks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-01-06 16:22:32 -0500
committerAndrew Butcher <abutcher@redhat.com>2017-01-09 11:21:21 -0500
commit4186b4742b9329f7aa9385556ffede3f4b5c93f1 (patch)
treea92e4dcf08b97d224510987631765adc746175f3 /roles/openshift_version/tasks
parent96fe76dad188610733c87cf80f4e22da34f11fb7 (diff)
downloadopenshift-4186b4742b9329f7aa9385556ffede3f4b5c93f1.tar.gz
openshift-4186b4742b9329f7aa9385556ffede3f4b5c93f1.tar.bz2
openshift-4186b4742b9329f7aa9385556ffede3f4b5c93f1.tar.xz
openshift-4186b4742b9329f7aa9385556ffede3f4b5c93f1.zip
Fix openshift_image_tag=latest.
Diffstat (limited to 'roles/openshift_version/tasks')
-rw-r--r--roles/openshift_version/tasks/set_version_containerized.yml5
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