Browse Source

Replace usage of netloc filters to urlsplit

Removed references to netloc_no_port as it will be taken out from
openstack-ansible-plugins. Now using ansible 2.4's urlsplit filter
as a replacement.

Change-Id: If28c8bf2856ebb9a1cab4759b3ddc5b6c4685abf
Related-Bug: #1820830
changes/21/645221/3
Georgina Shippey 3 months ago
parent
commit
79d2ab3f0b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      templates/pip.conf.j2

+ 2
- 2
templates/pip.conf.j2 View File

@@ -1,6 +1,6 @@
1 1
 # {{ ansible_managed }}
2
-{% set pip_links_host_list = pip_links | map(attribute='link') | map('netloc_no_port') | list %}
3
-{% set trusted_host_list = pip_links_host_list | union([ pip_default_index | netloc_no_port ]) %}
2
+{% set pip_links_host_list = pip_links | map(attribute='link') | map('urlsplit', 'hostname') | list %}
3
+{% set trusted_host_list = pip_links_host_list | union([ pip_default_index | urlsplit('hostname') ]) %}
4 4
 
5 5
 [global]
6 6
 disable-pip-version-check = {{ (pip_disable_version_check | bool) | lower }}

Loading…
Cancel
Save