mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-09 12:51:39 +00:00
remove io/ioutil for advanced golang (#951)
Signed-off-by: yanggang <gang.yang@daocloud.io> Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"strings"
|
||||
@@ -55,7 +54,7 @@ func NewFakeNetAttachDefFile(namespace, name, filePath, fileData string) *netv1.
|
||||
Namespace: namespace,
|
||||
},
|
||||
}
|
||||
err := ioutil.WriteFile(filePath, []byte(fileData), 0600)
|
||||
err := os.WriteFile(filePath, []byte(fileData), 0600)
|
||||
gomega.Expect(err).NotTo(gomega.HaveOccurred())
|
||||
return netAttach
|
||||
}
|
||||
|
Reference in New Issue
Block a user