From 583cfc57606483c88e7485e9ee65d88ffcc738df Mon Sep 17 00:00:00 2001 From: Kazuki Takamatsu Date: Mon, 10 Jun 2024 10:19:12 +0900 Subject: [PATCH] fix: add comment --- api/extensions/storage/google_storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/extensions/storage/google_storage.py b/api/extensions/storage/google_storage.py index 9370a0788a9bc6..ef6cd69039787c 100644 --- a/api/extensions/storage/google_storage.py +++ b/api/extensions/storage/google_storage.py @@ -21,6 +21,7 @@ def __init__(self, app: Flask): # if service_account_json_str is empty, use Application Default Credentials if service_account_json_str: service_account_json = base64.b64decode(service_account_json_str).decode('utf-8') + # convert str to object service_account_obj = json.loads(service_account_json) self.client = GoogleCloudStorage.Client.from_service_account_info(service_account_obj) else: