Skip to content

Commit

Permalink
google auth: rename env var to GOOGLE_CREDENTIALS_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Oct 7, 2024
1 parent 007536e commit 1eaeaaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automon/integrations/google/auth/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ def Credentials(self):
except:
pass

raise Exception(f'Missing GOOGLE_CREDENTIALS or GOOGLE_CREDENTIALS_BASE64')
raise Exception(f'Missing GOOGLE_CREDENTIALS_FILE or GOOGLE_CREDENTIALS_BASE64')

@property
def _GOOGLE_CREDENTIALS(self):
"""env var GOOGLE_CREDENTIALS"""
return environ('GOOGLE_CREDENTIALS')
"""env var GOOGLE_CREDENTIALS_FILE"""
return environ('GOOGLE_CREDENTIALS_FILE')

@property
def _GOOGLE_CREDENTIALS_BASE64(self):
Expand Down
4 changes: 4 additions & 0 deletions env-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ GOOGLE_TOKEN_URI=
GOOGLE_PROJECT_ID=
GOOGLE_REFRESH_TOKEN=

GOOGLE_CREDENTIALS_FILE=
GOOGLE_CREDENTIALS_BASE64=
GOOGLE_SHEET_ID=

# Instagram
INSTAGRAM_LOGIN=
INSTAGRAM_PASSWORD=
Expand Down

0 comments on commit 1eaeaaf

Please sign in to comment.