From d994d0789a4b47ae619f404a6e36e947cba2e4e1 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Fri, 15 Jul 2016 14:56:19 -0400 Subject: Convert openshift_release and openshift_version to strings for startswith Fixes : startswith first arg must be str, unicode, or tuple, not float --- roles/openshift_version/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roles/openshift_version') 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 @@ -16,6 +16,10 @@ openshift_release: "{{ openshift_release[1:] }}" 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 -- cgit v1.2.3