summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Rabotjagov <dmitriy.r@sitevalley.com>2019-03-22 14:32:44 +0200
committerDmitriy Rabotjagov <dmitriy.r@sitevalley.com>2019-03-22 14:35:52 +0200
commite14e33328a765dd64b0817cd6403abfa100252ad (patch)
treee51416264434f93276bd377184faf86e30f46448
parentdcd9469411abad390c65657ebb7060d954f9eb25 (diff)
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>
Notes
Notes (review): Code-Review+2: Jesse Pretorius (odyssey4me) <jesse@odyssey4.me> Code-Review+1: Nicolas Bock <nicolasbock@gmail.com> Code-Review+2: Kevin Carter (cloudnull) <kevin@cloudnull.com> Workflow+1: Kevin Carter (cloudnull) <kevin@cloudnull.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 22 Mar 2019 14:01:46 +0000 Reviewed-on: https://review.openstack.org/645556 Project: openstack/openstack-ansible-repo_build Branch: refs/heads/master
-rw-r--r--tasks/repo_build_wheels.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/repo_build_wheels.yml b/tasks/repo_build_wheels.yml
index b5e6997..ab58a3b 100644
--- a/tasks/repo_build_wheels.yml
+++ b/tasks/repo_build_wheels.yml
@@ -50,7 +50,7 @@
50 --trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }} 50 --trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
51 {% if repo_build_pip_extra_indexes is defined %} 51 {% if repo_build_pip_extra_indexes is defined %}
52 --extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }} 52 --extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
53 --trusted-host {{ repo_build_pip_extra_indexes | map(urlsplit('hostname')) | join(' --trusted-host ') }} 53 --trusted-host {{ repo_build_pip_extra_indexes | map('urlsplit', 'hostname') | join(' --trusted-host ') }}
54 {% endif %} 54 {% endif %}
55 --requirement {{ repo_build_release_path }}/requirements.txt 55 --requirement {{ repo_build_release_path }}/requirements.txt
56 {{ pip_install_options }} 56 {{ pip_install_options }}
@@ -75,7 +75,7 @@
75 --trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }} 75 --trusted-host {{ repo_build_pip_default_index | urlsplit('hostname') }}
76 {% if repo_build_pip_extra_indexes is defined %} 76 {% if repo_build_pip_extra_indexes is defined %}
77 --extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }} 77 --extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}
78 --trusted-host {{ repo_build_pip_extra_indexes | map(urlsplit('hostname')) | join(' --trusted-host ') }} 78 --trusted-host {{ repo_build_pip_extra_indexes | map('urlsplit', 'hostname') | join(' --trusted-host ') }}
79 {% endif %} 79 {% endif %}
80 --build {{ repo_build_dir }} 80 --build {{ repo_build_dir }}
81 --requirement {{ repo_build_release_path }}/requirements.txt 81 --requirement {{ repo_build_release_path }}/requirements.txt