Skip to content

Commit

Permalink
Fix #2048
Browse files Browse the repository at this point in the history
  • Loading branch information
ramondeklein committed Jan 18, 2025
1 parent 2fd5a54 commit e477d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/credentials/iam_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ func (m *IAM) RetrieveWithCredContext(cc *CredContext) (Value, error) {
}

endpoint := m.Endpoint
if endpoint == "" {
endpoint = cc.Endpoint
}

switch {
case identityFile != "":
Expand Down Expand Up @@ -218,6 +215,9 @@ func (m *IAM) RetrieveWithCredContext(cc *CredContext) (Value, error) {
roleCreds, err = getEcsTaskCredentials(client, endpoint, token)

default:
if endpoint == "" {
endpoint = cc.Endpoint
}
roleCreds, err = getCredentials(client, endpoint)
}

Expand Down

0 comments on commit e477d24

Please # to comment.