Skip to content

Commit

Permalink
Remove ioutil requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
lhaig committed Sep 26, 2022
1 parent 3c73741 commit 036ee91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions command/tls_ca_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package command

import (
"fmt"
"io/ioutil"
"os"
"strings"

"github.com/hashicorp/nomad/helper/tlsutil"
Expand Down Expand Up @@ -71,7 +71,7 @@ func (c *TLSCAInfoCommand) Run(args []string) int {
}
if len(args) == 1 {
file = args[0]
certFile, err = ioutil.ReadFile(file)
certFile, err = os.ReadFile(file)
if err != nil {
c.Ui.Error(fmt.Sprintf("Error reading CA file: %v", err))
return 1
Expand Down
4 changes: 2 additions & 2 deletions command/tls_cert_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package command

import (
"fmt"
"io/ioutil"
"os"
"strings"

"github.com/hashicorp/nomad/helper/tlsutil"
Expand Down Expand Up @@ -69,7 +69,7 @@ func (c *TLSCertInfoCommand) Run(args []string) int {

if len(args) == 1 {
file = args[0]
certFile, err = ioutil.ReadFile(file)
certFile, err = os.ReadFile(file)
if err != nil {
c.Ui.Error(fmt.Sprintf("Error reading Certifiate file: %v", err))
return 1
Expand Down

0 comments on commit 036ee91

Please sign in to comment.