Skip to content

Commit

Permalink
Avoid deprecated package
Browse files Browse the repository at this point in the history
  • Loading branch information
eldondev committed Sep 9, 2024
1 parent 9566f0c commit f4a0d2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/saml2aws/commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
b64 "encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"strings"
Expand Down Expand Up @@ -367,7 +366,7 @@ func loginToStsUsingRole(account *cfg.IDPAccount, role *saml2aws.AWSRole, samlAs
}

if account.PolicyFile != "" {
policy, err := ioutil.ReadFile(account.PolicyFile)
policy, err := os.ReadFile(account.PolicyFile)
if err != nil {
return nil, errors.Wrap(err, fmt.Sprintf("Failed to load supplimental policy file: %s", account.PolicyFile))
}
Expand Down

0 comments on commit f4a0d2e

Please sign in to comment.