Skip to content

Commit c150f8e

Browse files
committed
Merge pull request #1293 from dhermes/datastore-local-api-base-url
Explicitly using API_BASE_URL from current connection in datastore.
2 parents 36b08c1 + a4b28df commit c150f8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gcloud/datastore/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class Connection(connection.Connection):
3939
from :mod:`gcloud.connection`.
4040
"""
4141

42+
API_BASE_URL = 'https://www.googleapis.com'
43+
"""The base of the API call URL."""
44+
4245
API_VERSION = 'v1beta2'
4346
"""The version of the API, used in building the API call's URL."""
4447

@@ -54,7 +57,7 @@ def __init__(self, credentials=None, http=None, api_base_url=None):
5457
super(Connection, self).__init__(credentials=credentials, http=http)
5558
if api_base_url is None:
5659
api_base_url = os.getenv(GCD_HOST,
57-
connection.API_BASE_URL)
60+
self.__class__.API_BASE_URL)
5861
self.api_base_url = api_base_url
5962

6063
def _request(self, dataset_id, method, data):

0 commit comments

Comments
 (0)