Skip to content

Commit

Permalink
Parse GCP credentials from string via json.loads().
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbirchard committed Feb 22, 2024
1 parent ab8c0cd commit 07d2cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Settings(BaseSettings):
GOOGLE_CLOUD_JSON_FILEPATH: str = getenv("GOOGLE_CLOUD_JSON_FILEPATH")
GOOGLE_CLOUD_CREDENTIALS_JSON: str = getenv("GOOGLE_CLOUD_CREDENTIALS")
GOOGLE_CLOUD_CREDENTIALS: Credentials = service_account.Credentials.from_service_account_info(
json.load(GOOGLE_CLOUD_CREDENTIALS_JSON)
json.loads(GOOGLE_CLOUD_CREDENTIALS_JSON)
)
if ENVIRONMENT == "production":
GOOGLE_CLOUD_CREDENTIALS: Credentials = service_account.Credentials.from_service_account_file(
Expand Down

0 comments on commit 07d2cae

Please sign in to comment.