summaryrefslogtreecommitdiff
path: root/gcp
diff options
context:
space:
mode:
Diffstat (limited to 'gcp')
-rw-r--r--gcp/meta.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcp/meta.go b/gcp/meta.go
index bf80821b..b02b1d31 100644
--- a/gcp/meta.go
+++ b/gcp/meta.go
@@ -2,7 +2,7 @@ package gcp
import (
"fmt"
- "io/ioutil"
+ "io"
"net/http"
"strconv"
"strings"
@@ -110,7 +110,7 @@ func (c *MetaClient) retrieveMetadata(url string, def ...string) (string, error)
return returnDefault(def), nil
}
- body, err := ioutil.ReadAll(resp.Body)
+ body, err := io.ReadAll(resp.Body)
if err != nil {
return "", fmt.Errorf("failed to read response body from %s: %w", url, err)
}