BraydenMoore commited on
Commit
7f9df07
1 Parent(s): 31fd8c5

Fix auth string formatting

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