1
0
mirror of https://github.com/rancher/os.git synced 2025-08-02 07:24:28 +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 niusmallnan
parent 8c0f0bcedf
commit 310fa03a0c

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