Skip to content

Commit 844308a

Browse files
committed
Change to use credentials info
1 parent 838726e commit 844308a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sqlalchemy_datastore/datastore_dbapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def gql_query(self, statement, parameters=None, **kwargs):
123123

124124
if os.getenv("DATASTORE_EMULATOR_HOST") is None:
125125
# Request service credentials
126-
credentials = service_account.Credentials.from_service_account_file(
127-
self.connection.credentials_path,
126+
credentials = service_account.Credentials.from_service_account_info(
127+
self._datastore_client.credentials_info,
128128
scopes=["https://www.googleapis.com/auth/datastore"],
129129
)
130130

0 commit comments

Comments
 (0)