From a6b7ec5c121b41aec09583889b84fbdd12d3827b Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Thu, 1 Jun 2017 12:36:35 -0700 Subject: [PATCH] aws/credentials: Fix shared credential providers filename (#1312) 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 --- aws/credentials/shared_credentials_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/credentials/shared_credentials_provider.go b/aws/credentials/shared_credentials_provider.go index cabecc1f913..51e21e0f38f 100644 --- a/aws/credentials/shared_credentials_provider.go +++ b/aws/credentials/shared_credentials_provider.go @@ -130,7 +130,7 @@ func (p *SharedCredentialsProvider) filename() (string, error) { return "", ErrSharedCredentialsHomeNotFound } - p.Filename = shareddefaults.SharedConfigFilename() + p.Filename = shareddefaults.SharedCredentialsFilename() return p.Filename, nil }