Skip to content
Snippets Groups Projects
Unverified Commit 09f3caed authored by Mathieu Parent's avatar Mathieu Parent Committed by GitHub
Browse files

[download] Don't fail on 304 Not Modified (#10452)

i.e when file was not modified since last download
parent fe4b1f6d
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,9 @@ ...@@ -101,7 +101,9 @@
run_once: "{{ download_force_cache }}" run_once: "{{ download_force_cache }}"
register: get_url_result register: get_url_result
become: "{{ not download_localhost }}" become: "{{ not download_localhost }}"
until: "'OK' in get_url_result.msg or 'file already exists' in get_url_result.msg" until: "'OK' in get_url_result.msg or
'file already exists' in get_url_result.msg or
get_url_result.status_code == 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.
Finish editing this message first!
Please register or to comment