Skip to content

Commit

Permalink
fix: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kazukitakamatsu committed Jun 10, 2024
1 parent bb37a99 commit 583cfc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/extensions/storage/google_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 583cfc5

Please sign in to comment.