mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Only use specified HTTP client for AWS creds if one is passed in. (#3161)
Probably fixes #3159
This commit is contained in:
parent
db646c2c7a
commit
e2cad8aa15
1 changed files with 3 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue