Skip to content

Commit 830e563

Browse files
FIX: Renamed Duplicate ENV Variables (#588)
* Renamed duplicate env variables * Removed TODO comment
1 parent b6057e8 commit 830e563

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

backend/sample.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ FREE_STORAGE_AWS_ACCESS_KEY_ID=
5757
FREE_STORAGE_AWS_SECRET_ACCESS_KEY=
5858
UNSTRACT_FREE_STORAGE_BUCKET_NAME=
5959

60-
GOOGLE_SERVICE_ACCOUNT=
61-
GOOGLE_PROJECT_ID=
60+
GDRIVE_GOOGLE_SERVICE_ACCOUNT=
61+
GDRIVE_GOOGLE_PROJECT_ID=
6262
GOOGLE_STORAGE_ACCESS_KEY_ID=
6363
GOOGLE_STORAGE_SECRET_ACCESS_KEY=
6464
GOOGLE_STORAGE_BASE_URL=https://storage.googleapis.com

unstract/connectors/src/unstract/connectors/gcs_helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ def __init__(self, message: str):
2020

2121
class GCSHelper:
2222
def __init__(self) -> None:
23-
self.google_service_json = os.environ.get("GOOGLE_SERVICE_ACCOUNT")
24-
self.google_project_id = os.environ.get("GOOGLE_PROJECT_ID")
23+
self.google_service_json = os.environ.get("GDRIVE_GOOGLE_SERVICE_ACCOUNT")
24+
self.google_project_id = os.environ.get("GDRIVE_GOOGLE_PROJECT_ID")
2525
if self.google_service_json is None:
2626
raise GCSHelperEnvNotSetException(
27-
"GOOGLE_SERVICE_ACCOUNT environment variable not set"
27+
"GDRIVE_GOOGLE_SERVICE_ACCOUNT environment variable not set"
2828
)
2929
if self.google_project_id is None:
3030
raise GCSHelperEnvNotSetException(
31-
"GOOGLE_PROJECT_ID environment variable not set"
31+
"GDRIVE_GOOGLE_PROJECT_ID environment variable not set"
3232
)
3333

3434
self.google_credentials = service_account.Credentials.from_service_account_info(

0 commit comments

Comments
 (0)