Skip to content

Commit

Permalink
aws/credentials: Fix shared credential providers filename (#1312)
Browse files Browse the repository at this point in the history
In #1308 the filename was being retrieved with the SharedConfigFilename
utility function not SharedCredentialsFilename function.

This bug caused the session.New with the SharedCredentials file to break.

Fix #1313
  • Loading branch information
jasdel authored Jun 1, 2017
1 parent b5ae8e9 commit a6b7ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/credentials/shared_credentials_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (p *SharedCredentialsProvider) filename() (string, error) {
return "", ErrSharedCredentialsHomeNotFound
}

p.Filename = shareddefaults.SharedConfigFilename()
p.Filename = shareddefaults.SharedCredentialsFilename()

return p.Filename, nil
}
Expand Down

0 comments on commit a6b7ec5

Please sign in to comment.