diff options
| author | Taras Madan <tarasmadan@google.com> | 2023-02-23 14:28:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 14:28:18 +0100 |
| commit | 4359978ef22a22ddd5a19adf18cbc80cb44244fb (patch) | |
| tree | 7952da94e27417b39ddf952d9e0bab431dafc4c5 /vm/gce | |
| parent | 9e2ebb3c174f1e168bc1fbadd5f02f2e25e314fc (diff) | |
all: ioutil is deprecated in go1.19 (#3718)
Diffstat (limited to 'vm/gce')
| -rw-r--r-- | vm/gce/gce.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go index ba05af51b..458b6ed0f 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -17,7 +17,6 @@ import ( "compress/gzip" "fmt" "io" - "io/ioutil" "os" "path/filepath" "strings" @@ -149,7 +148,7 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { if out, err := keygen.CombinedOutput(); err != nil { return nil, fmt.Errorf("failed to execute ssh-keygen: %v\n%s", err, out) } - gceKeyPub, err := ioutil.ReadFile(gceKey + ".pub") + gceKeyPub, err := os.ReadFile(gceKey + ".pub") if err != nil { return nil, fmt.Errorf("failed to read file: %v", err) } |
