From 4359978ef22a22ddd5a19adf18cbc80cb44244fb Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 23 Feb 2023 14:28:18 +0100 Subject: all: ioutil is deprecated in go1.19 (#3718) --- pkg/gce/gce.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/gce') diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go index 7a72f1bfd..f461df604 100644 --- a/pkg/gce/gce.go +++ b/pkg/gce/gce.go @@ -13,7 +13,7 @@ package gce import ( "fmt" - "io/ioutil" + "io" "math/rand" "net/http" "strings" @@ -342,7 +342,7 @@ func (ctx *Context) getMeta(path string) (string, error) { return "", err } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return "", err } -- cgit mrf-deployment