Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
added eval to json string
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Aug 23, 2019
1 parent 80a0b09 commit 31eb3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def init():

with open('pubsub-credentials.json', 'w') as f:
# set GCP Auth per https://cloud.google.com/docs/authentication/getting-started
json.dump(pubsub_json_string, f)
json.dump(eval(pubsub_json_string), f)
json_file_path = os.path.realpath(f.name)
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = json_file_path

Expand Down

0 comments on commit 31eb3f6

Please sign in to comment.