Skip to content

Commit

Permalink
Merge pull request #306 from TerryHowe/remove-dreprecated-import
Browse files Browse the repository at this point in the history
chore: fix deprecated import
  • Loading branch information
andyzhangx authored Oct 19, 2024
2 parents 0bf7bcc + 97c3587 commit 3b56914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/iscsilib/iscsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 3b56914

Please sign in to comment.