From 97c35873a57dd23f4663905953d2f709325fdc3e Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Fri, 18 Oct 2024 11:10:47 -0600 Subject: [PATCH] chore: fix deprecated import --- pkg/iscsilib/iscsi.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/iscsilib/iscsi.go b/pkg/iscsilib/iscsi.go index 097a0496..32987936 100644 --- a/pkg/iscsilib/iscsi.go +++ b/pkg/iscsilib/iscsi.go @@ -20,7 +20,6 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" "os" "os/exec" "path/filepath" @@ -666,7 +665,7 @@ func (c *Connector) Persist(filePath string) error { // GetConnectorFromFile attempts to create a Connector using the specified json file (ie /var/lib/pfile/myConnector.json) func GetConnectorFromFile(filePath string) (*Connector, error) { - f, err := ioutil.ReadFile(filePath) + f, err := os.ReadFile(filePath) if err != nil { return nil, err }