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 VannTen committed Jan 12, 2024
1 parent 3d76c30 commit 430e1cb
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 430e1cb

Please sign in to comment.