From f8198b66c0aa49547da2c90284f540b4547d5669 Mon Sep 17 00:00:00 2001 From: Aarsh2001 Date: Wed, 4 Oct 2023 18:03:02 +0100 Subject: [PATCH] gcp auth --- .github/auth/db_auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/auth/db_auth.py b/.github/auth/db_auth.py index a81f5389..9ccbc65b 100644 --- a/.github/auth/db_auth.py +++ b/.github/auth/db_auth.py @@ -12,6 +12,7 @@ def _write_auth_to_file(endpoint, obj_id): object_id_to_find = ObjectId(str(obj_id)) creds = collection.find_one({"_id": object_id_to_find}) + del creds['_id'] with open(".github/auth/gcp_auth.json", "w") as f: json.dump(creds, f, indent=4)