Don't fail ping check for pypi mirror on nonstandard port
Many CI systems run pypi mirrors on nonstandard ports and the "ping" sanity check fails to ping when a port number is present in the pypi url. Change-Id: I411848aa8aa4713a4c649c54f7f3490b29fd36fc
This commit is contained in:
parent
7a1813a59a
commit
fe24aba17a
|
@ -6,7 +6,7 @@
|
|||
- name: Set pypi_url variable
|
||||
set_fact: pypi_url={{ lookup('ini', 'index-url section=global file=' + PIP_CONFIG_FILE) }}
|
||||
- name: Set pypi_host variable
|
||||
set_fact: pypi_host={{ pypi_url.split('/')[2] }}
|
||||
set_fact: pypi_host={{ pypi_url.split('/')[2].split(':')[0] }}
|
||||
- include: ping_check.yaml host={{ pypi_host }}
|
||||
- include: http_check.yaml url={{ pypi_url }}
|
||||
when: st.stat.exists
|
||||
|
|
Loading…
Reference in New Issue