From bd153436dc9682705f0918c98b5cde1c949570d1 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Thu, 24 Nov 2022 09:32:38 +0000 Subject: [PATCH] runtime: Update deprecate package - Switch io/ioutil to os Signed-off-by: stevenhorsman --- src/runtime/virtcontainers/kata_agent.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/virtcontainers/kata_agent.go b/src/runtime/virtcontainers/kata_agent.go index 275433f62f..1bb03a2791 100644 --- a/src/runtime/virtcontainers/kata_agent.go +++ b/src/runtime/virtcontainers/kata_agent.go @@ -10,7 +10,6 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" "os" "path/filepath" "strconv" @@ -2139,7 +2138,7 @@ func (k *kataAgent) copyFile(ctx context.Context, src, dst string) error { case unix.S_IFREG: var err error // TODO: Support incrementail file copying instead of loading whole file into memory - b, err = ioutil.ReadFile(src) + b, err = os.ReadFile(src) if err != nil { return fmt.Errorf("Could not read file %s: %v", src, err) }