mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 21:14:56 +00:00
Merge pull request #7591 from mmorel-35/noctx
golangci-lint(noctx): fix test files
This commit is contained in:
@@ -907,7 +907,9 @@ func getVeleroCliTarball(cliTarballUrl string) (*os.File, error) {
|
||||
lastInd := strings.LastIndex(cliTarballUrl, "/")
|
||||
tarball := cliTarballUrl[lastInd+1:]
|
||||
|
||||
resp, err := http.Get(cliTarballUrl)
|
||||
cli := &http.Client{}
|
||||
req, _ := http.NewRequestWithContext(context.Background(), http.MethodGet, cliTarballUrl, nil)
|
||||
resp, err := cli.Do(req)
|
||||
if err != nil {
|
||||
return nil, errors.WithMessagef(err, "failed to access Velero CLI tarball")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user