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
This commit is contained in:
Mohammed Naser 2019-04-05 22:15:45 -04:00
parent 092d874e6f
commit 9563818f69
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}