Skip to content

Commit

Permalink
Only use specified HTTP client for AWS creds if one is passed in.
Browse files Browse the repository at this point in the history
Probably fixes #3159
  • Loading branch information
jefferai committed Aug 14, 2017
1 parent db646c2 commit dd7f847
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 dd7f847

Please sign in to comment.