Skip to content

Commit

Permalink
[vars] Allow envar SA_REGION instead of REGION
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Fedorov committed Nov 28, 2019
1 parent 7dd21aa commit 9582d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runners/helpers/dbconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def format_p8_from_key(key, encrypted=False):
SA_KMS_REGION = environ.get('SA_KMS_REGION', "us-west-2")

# database & account properties
REGION = environ.get('REGION', "us-west-2")
REGION = environ.get('SA_REGION', environ.get('REGION', "us-west-2"))
REGION_SUBDOMAIN_POSTFIX = '' if REGION == 'us-west-2' else f'.{REGION}'
ACCOUNT = environ.get('SNOWFLAKE_ACCOUNT', '') + REGION_SUBDOMAIN_POSTFIX

Expand Down

0 comments on commit 9582d1c

Please sign in to comment.