summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-15 14:56:19 -0400
committerScott Dodson <sdodson@redhat.com>2016-07-15 15:32:22 -0400
commitd994d0789a4b47ae619f404a6e36e947cba2e4e1 (patch)
tree3b216586109f5eb562234e94ddab304ad25effef
parent65ffae3e6edc8902c591dfef792a505a16029698 (diff)
downloadopenshift-d994d0789a4b47ae619f404a6e36e947cba2e4e1.tar.gz
openshift-d994d0789a4b47ae619f404a6e36e947cba2e4e1.tar.bz2
openshift-d994d0789a4b47ae619f404a6e36e947cba2e4e1.tar.xz
openshift-d994d0789a4b47ae619f404a6e36e947cba2e4e1.zip
Convert openshift_release and openshift_version to strings for startswith
Fixes : startswith first arg must be str, unicode, or tuple, not float
-rw-r--r--roles/openshift_version/tasks/main.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml
index 2d96d2765..0a134f557 100644
--- a/roles/openshift_version/tasks/main.yml
+++ b/roles/openshift_version/tasks/main.yml
@@ -17,6 +17,10 @@
when: openshift_release is defined and openshift_release[0] == 'v'
- set_fact:
+ openshift_release: "{{ openshift_release | string }}"
+ when: openshift_release is defined
+
+- set_fact:
openshift_image_tag: "{{ 'v' + openshift_image_tag }}"
when: openshift_image_tag is defined and openshift_image_tag[0] != 'v'
@@ -26,7 +30,7 @@
# Make sure we copy this to a fact if given a var:
- set_fact:
- openshift_version: "{{ openshift_version }}"
+ openshift_version: "{{ openshift_version | string }}"
when: openshift_version is defined
# Protect the installed version by default unless explicitly told not to, or given an