Use netloc_no_port for trusted-host in pip.conf
The move to templating pip.conf has caused an issue with trusted-hosts, The value requires no port, and will fail if a port is specified. This patch resolves that by using the "netloc_no_port" filter instead of the "netloc" filter. Change-Id: I9cca5138934eee438906ac25d165d128c2411e31
This commit is contained in:
parent
0c40d7a7bf
commit
5041d0e9ba
@ -7,7 +7,7 @@ timeout = {{ pip_timeout }}
|
||||
no-index = true
|
||||
trusted-host =
|
||||
{% for pip_link in pip_links %}
|
||||
{{ pip_link.link | netloc }}
|
||||
{{ pip_link.link | netloc_no_port }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user