Skip to content

Commit

Permalink
Add default values in record_indexer/settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarahui committed Jan 24, 2024
1 parent c8f4136 commit b2a722f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions record_indexer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

def get_auth():
credentials = Session().get_credentials()
return AWSV4SignerAuth(credentials, os.environ.get("AWS_REGION"))
if not credentials:
return False
return AWSV4SignerAuth(credentials, os.environ.get("AWS_REGION", "us-west-2"))

ENDPOINT = os.environ.get("RIKOLTI_ES_ENDPOINT")
ENDPOINT = os.environ.get("RIKOLTI_ES_ENDPOINT", False)
AUTH = get_auth()

RIKOLTI_HOME = os.environ.get("RIKOLTI_HOME", "/usr/local/airflow/dags/rikolti")
Expand Down

0 comments on commit b2a722f

Please sign in to comment.