Skip to content

Commit

Permalink
Only use specified HTTP client for AWS creds if one is passed in. (#3161
Browse files Browse the repository at this point in the history
)

Probably fixes #3159
  • Loading branch information
jefferai authored Aug 14, 2017
1 parent db646c2 commit e2cad8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helper/awsutil/generate_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func (c *CredentialsConfig) GenerateCredentialChain() (*credentials.Credentials,
if c.Region != "" {
def.Config.Region = aws.String(c.Region)
}
def.Config.HTTPClient = c.HTTPClient
if c.HTTPClient != nil {
def.Config.HTTPClient = c.HTTPClient
}

providers = append(providers, defaults.RemoteCredProvider(*def.Config, def.Handlers))

Expand Down

0 comments on commit e2cad8a

Please sign in to comment.