Skip to content

Commit

Permalink
Remove usage of deprecated io/ioutil (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai authored Oct 18, 2023
1 parent 7a0e017 commit d5dee03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/drivers/linode/linode.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"regexp"
"strconv"
"strings"
Expand Down Expand Up @@ -584,7 +584,7 @@ func (d *Driver) createSSHKey() (string, error) {
return "", err
}

publicKey, err := ioutil.ReadFile(d.publicSSHKeyPath())
publicKey, err := os.ReadFile(d.publicSSHKeyPath())
if err != nil {
return "", err
}
Expand Down

0 comments on commit d5dee03

Please sign in to comment.