forked from Mirrors/oauth2
Update aws.go
This commit is contained in:
parent
9de080890d
commit
1a10bcc079
|
@ -341,7 +341,7 @@ func (cs awsCredentialSource) subjectToken() (string, error) {
|
||||||
func (cs *awsCredentialSource) getRegion() (string, error) {
|
func (cs *awsCredentialSource) getRegion() (string, error) {
|
||||||
if envAwsRegion := getenv("AWS_REGION"); envAwsRegion != "" {
|
if envAwsRegion := getenv("AWS_REGION"); envAwsRegion != "" {
|
||||||
return envAwsRegion, nil
|
return envAwsRegion, nil
|
||||||
} else if envAwsRegion := getenv("AWS_DEFAULT_REGION"); envAwsRegion != "" {
|
} if envAwsRegion := getenv("AWS_DEFAULT_REGION"); envAwsRegion != "" {
|
||||||
return envAwsRegion, nil
|
return envAwsRegion, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue