Skip to content

Commit f4a0d2e

Browse files
committed
Avoid deprecated package
1 parent 9566f0c commit f4a0d2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/saml2aws/commands/login.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
b64 "encoding/base64"
55
"encoding/json"
66
"fmt"
7-
"io/ioutil"
87
"log"
98
"os"
109
"strings"
@@ -367,7 +366,7 @@ func loginToStsUsingRole(account *cfg.IDPAccount, role *saml2aws.AWSRole, samlAs
367366
}
368367

369368
if account.PolicyFile != "" {
370-
policy, err := ioutil.ReadFile(account.PolicyFile)
369+
policy, err := os.ReadFile(account.PolicyFile)
371370
if err != nil {
372371
return nil, errors.Wrap(err, fmt.Sprintf("Failed to load supplimental policy file: %s", account.PolicyFile))
373372
}

0 commit comments

Comments
 (0)