mirror of
https://github.com/docker/compose.git
synced 2025-07-25 22:54:54 +02:00
Fix region from environment
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
53efa312c8
commit
2fdc93786e
@ -43,7 +43,8 @@ func getEnvVars() ContextParams {
|
|||||||
}
|
}
|
||||||
// check REGION env vars
|
// check REGION env vars
|
||||||
region := os.Getenv("AWS_REGION")
|
region := os.Getenv("AWS_REGION")
|
||||||
if region == "" {
|
c.Region = region
|
||||||
|
if c.Region == "" {
|
||||||
region = os.Getenv("AWS_DEFAULT_REGION")
|
region = os.Getenv("AWS_DEFAULT_REGION")
|
||||||
if region == "" {
|
if region == "" {
|
||||||
region = "us-east-1"
|
region = "us-east-1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user