Skip to content

Commit

Permalink
fix wrong env var
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas.labarussias committed Jul 26, 2020
1 parent 5d29af5 commit 9a68700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func main() {
}
if *region == "" {
if os.Getenv("AWS_REGION") != "" {
*region = os.Getenv("AWS_PROFILE")
*region = os.Getenv("AWS_REGION")
} else if os.Getenv("AWS_DEFAULT_REGION") != "" {
*region = os.Getenv("AWS_DEFAULT_PROFILE")
} else {
Expand Down

0 comments on commit 9a68700

Please sign in to comment.