Skip to content

Commit 12b4807

Browse files
authored
Adding optional switch to capture project ID in from_service_account_json(). (#3436)
Fixes #1883.
1 parent 17a2c8d commit 12b4807

File tree

1 file changed

+1
-0
lines changed
  • packages/google-cloud-spanner/google/cloud/spanner

1 file changed

+1
-0
lines changed

packages/google-cloud-spanner/google/cloud/spanner/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class Client(_ClientFactoryMixin, _ClientProjectMixin):
102102
"""
103103
_instance_admin_api = None
104104
_database_admin_api = None
105+
_SET_PROJECT = True # Used by from_service_account_json()
105106

106107
def __init__(self, project=None, credentials=None,
107108
user_agent=DEFAULT_USER_AGENT):

0 commit comments

Comments
 (0)