Skip to content
Snippets Groups Projects
Unverified Commit 1a86b4cb authored by Romain's avatar Romain Committed by GitHub
Browse files

Fix download retry when get_url has no status_code. (#10613)

* Fix download retry when get_url has no status_code.

* Fix until clause in download role.
parent aea150e5
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
become: "{{ not download_localhost }}" become: "{{ not download_localhost }}"
until: "'OK' in get_url_result.msg or until: "'OK' in get_url_result.msg or
'file already exists' in get_url_result.msg or 'file already exists' in get_url_result.msg or
get_url_result.status_code == 304" get_url_result.status_code | default() == 304"
retries: "{{ download_retries }}" retries: "{{ download_retries }}"
delay: "{{ retry_stagger | default(5) }}" delay: "{{ retry_stagger | default(5) }}"
environment: "{{ proxy_env }}" environment: "{{ proxy_env }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment