mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-14 15:21:11 +01:00
Propose small spelling change (#3890)
This commit is contained in:
parent
4ff26fd82d
commit
ce1b43cd48
@ -69,7 +69,7 @@ func (b *backend) getRawClientConfig(ctx context.Context, s logical.Storage, reg
|
|||||||
}
|
}
|
||||||
|
|
||||||
// getClientConfig returns an aws-sdk-go config, with optionally assumed credentials
|
// getClientConfig returns an aws-sdk-go config, with optionally assumed credentials
|
||||||
// It uses getRawClientConfig to obtain config for the runtime environemnt, and if
|
// It uses getRawClientConfig to obtain config for the runtime environment, and if
|
||||||
// stsRole is a non-empty string, it will use AssumeRole to obtain a set of assumed
|
// stsRole is a non-empty string, it will use AssumeRole to obtain a set of assumed
|
||||||
// credentials. The credentials will expire after 15 minutes but will auto-refresh.
|
// credentials. The credentials will expire after 15 minutes but will auto-refresh.
|
||||||
func (b *backend) getClientConfig(ctx context.Context, s logical.Storage, region, stsRole, accountID, clientType string) (*aws.Config, error) {
|
func (b *backend) getClientConfig(ctx context.Context, s logical.Storage, region, stsRole, accountID, clientType string) (*aws.Config, error) {
|
||||||
|
|||||||
@ -77,7 +77,7 @@ func (c *CredentialsConfig) GenerateCredentialChain() (*credentials.Credentials,
|
|||||||
// Create the credentials required to access the API.
|
// Create the credentials required to access the API.
|
||||||
creds := credentials.NewChainCredentials(providers)
|
creds := credentials.NewChainCredentials(providers)
|
||||||
if creds == nil {
|
if creds == nil {
|
||||||
return nil, fmt.Errorf("could not compile valid credential providers from static config, environemnt, shared, or instance metadata")
|
return nil, fmt.Errorf("could not compile valid credential providers from static config, environment, shared, or instance metadata")
|
||||||
}
|
}
|
||||||
|
|
||||||
return creds, nil
|
return creds, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user