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) (kubernetes-sigs#10791)

* Fix download retry when get_url has no status_code.

* Fix until clause in download role.

Co-authored-by: Romain <[email protected]>
  • Loading branch information
VannTen and RomainMou authored Jan 15, 2024
1 parent 1bcd739 commit c264ae3
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 c264ae3

Please sign in to comment.