Fix map filter usage with urlsplit
As urlsplit is filter as well, so we need to quote it for applying to all items. Otherwise 'urlsplit' undefined variable error is raised. Change-Id: Ie4a51b177fb7f8e28c8c7dfb080960d6734ee21f Related-Bug: #1820830 Co-Authored-By: Nicolas Bock <nicolasbock@gmail.com>
This commit is contained in:
parent
dcd9469411
commit
e14e33328a
|
@ -50,7 +50,7 @@
|
||||||
--trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
|
--trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
|
||||||
{% if repo_build_pip_extra_indexes is defined %}
|
{% if repo_build_pip_extra_indexes is defined %}
|
||||||
--extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
|
--extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
|
||||||
--trusted-host {{ repo_build_pip_extra_indexes | map(urlsplit('hostname')) | join(' --trusted-host ') }}
|
--trusted-host {{ repo_build_pip_extra_indexes | map('urlsplit', 'hostname') | join(' --trusted-host ') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
--requirement {{ repo_build_release_path }}/requirements.txt
|
--requirement {{ repo_build_release_path }}/requirements.txt
|
||||||
{{ pip_install_options }}
|
{{ pip_install_options }}
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
--trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
|
--trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
|
||||||
{% if repo_build_pip_extra_indexes is defined %}
|
{% if repo_build_pip_extra_indexes is defined %}
|
||||||
--extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
|
--extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
|
||||||
--trusted-host {{ repo_build_pip_extra_indexes | map(urlsplit('hostname')) | join(' --trusted-host ') }}
|
--trusted-host {{ repo_build_pip_extra_indexes | map('urlsplit', 'hostname') | join(' --trusted-host ') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
--build {{ repo_build_dir }}
|
--build {{ repo_build_dir }}
|
||||||
--requirement {{ repo_build_release_path }}/requirements.txt
|
--requirement {{ repo_build_release_path }}/requirements.txt
|
||||||
|
|
Loading…
Reference in New Issue