mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 13:48:13 +00:00
runtime: Update deprecate package
- Switch io/ioutil to os Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
c11f7733c8
commit
bd153436dc
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user