BraydenMoore commited on
Commit
6781e74
·
1 Parent(s): bed3c83

Fix auth string formatting

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -12,7 +12,7 @@ import json
12
  from google.cloud import storage
13
 
14
  # authenticate gcp
15
- gcp_sa_key = json.loads(os.environ.get('GCP_SA_KEY').replace("'", '"').replace('\n', '\\n'))
16
  client = storage.Client.from_service_account_info(gcp_sa_key)
17
  bucket = client.get_bucket('bmllc-marci-data-bucket')
18
 
 
12
  from google.cloud import storage
13
 
14
  # authenticate gcp
15
+ gcp_sa_key = json.loads(os.environ.get('GCP_SA_KEY'))
16
  client = storage.Client.from_service_account_info(gcp_sa_key)
17
  bucket = client.get_bucket('bmllc-marci-data-bucket')
18