Skip to content

Commit

Permalink
Fix download retry when get_url has no status_code. (kubernetes-sigs#…
Browse files Browse the repository at this point in the history
…10613)

* Fix download retry when get_url has no status_code.

* Fix until clause in download role.
  • Loading branch information
RomainMou authored and pedromcpedro committed May 8, 2024
1 parent a3714e0 commit 662bea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/download/tasks/download_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
become: "{{ not download_localhost }}"
until: "'OK' 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 }}"
delay: "{{ retry_stagger | default(5) }}"
environment: "{{ proxy_env }}"
Expand Down

0 comments on commit 662bea7

Please sign in to comment.