1
0
mirror of https://github.com/rancher/os.git synced 2025-07-05 19:16:13 +00:00

GetRetry is used when detecting if url is available (#2237)

This commit is contained in:
niusmallnan 2018-01-25 18:01:55 +08:00 committed by GitHub
parent 1c2e55ed17
commit a268907302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}