Skip to content

Commit a7f37cd

Browse files
authored
Fix: use ioutil (#456)
1 parent e815623 commit a7f37cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/testrunner/runners/system/servicedeployer/kubernetes.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package servicedeployer
66

77
import (
8-
"io"
98
"io/ioutil"
109
"net/http"
1110
"path/filepath"
@@ -171,7 +170,7 @@ func downloadElasticAgentManagedYAML(url string) ([]byte, error) {
171170
}
172171
defer resp.Body.Close()
173172

174-
b, err := io.ReadAll(resp.Body)
173+
b, err := ioutil.ReadAll(resp.Body)
175174
if err != nil {
176175
return nil, errors.Wrap(err, "failed to read response body")
177176
}

0 commit comments

Comments
 (0)