mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 01:57:37 -03:30
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.
This commit is contained in:
parent
aea150e5dc
commit
1a86b4cb6d
@ -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 }}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user