From 130b101bdeaa2582007c13d39c2f9270a813030a Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 12 Apr 2019 17:21:16 +0100 Subject: [PATCH] Ensure venv_wheel_build_enable is evaluated as boolean We use the bool filter to make sure that venv_wheel_build_enable is evaluated as a boolean, rather than a string or something else. Change-Id: Ice305d2239e55be7e1a6f30628b72cf442553fd5 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 7e7770d..5502f86 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -72,7 +72,7 @@ venv_pip_build_args: "" # Default arguments to pass to pip when installing into # the venv. venv_default_pip_install_args: >- - {%- if (groups['repo_all'] is defined) and (groups['repo_all'] | length > 0) and (venv_wheel_build_enable) %} + {%- if (groups['repo_all'] is defined) and (groups['repo_all'] | length > 0) and (venv_wheel_build_enable | bool) %} --find-links {{ openstack_repo_url | default('http://localhost') }}/os-releases/{{ openstack_release | default('master') }}/{{ (ansible_distribution | lower) | replace(' ', '_') }}-{{ ansible_distribution_version.split('.')[:2] | join('.') }}-{{ ansible_architecture | lower }} --trusted-host {{ (openstack_repo_url | default('http://localhost')) | urlsplit('hostname') }} {%- endif %}