Skip to content

Commit

Permalink
chore: fix deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryHowe committed Oct 18, 2024
1 parent bccce0d commit 97c3587
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 97c3587

Please sign in to comment.