mirror of
https://github.com/rancher/os.git
synced 2025-07-06 03:26:12 +00:00
GetRetry is used when detecting if url is available (#2237)
This commit is contained in:
parent
1c2e55ed17
commit
a268907302
@ -34,7 +34,7 @@ func NewDatasource(url string) *RemoteFile {
|
||||
func (f *RemoteFile) IsAvailable() bool {
|
||||
network.SetProxyEnvironmentVariables()
|
||||
client := pkg.NewHTTPClient()
|
||||
_, f.lastError = client.Get(f.url)
|
||||
_, f.lastError = client.GetRetry(f.url)
|
||||
return (f.lastError == nil)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user