From 9563818f699ca6787e565c06f3f8fd99511efdba Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 5 Apr 2019 22:15:45 -0400 Subject: [PATCH] Stop adding extra options when wheel build is disabled If we're not building wheels inside a repo_server, then there's no need to point towards the links and the trusted host because there's nothing to find there anyways. Change-Id: Ia977edbb75451f285abbdb64ac1249115ed52a5c --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6ba0114..f96c759 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -71,7 +71,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) %} + {%- if (groups['repo_all'] is defined) and (groups['repo_all'] | length > 0) and (venv_wheel_build_enable) %} --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 %}