Visitar URL original
Changing user-agent to use the version from google-cloud-core. · dhermes/google-cloud-python@b2af5a1 · GitHub
Skip to content

Commit b2af5a1

Browse files
committed
Changing user-agent to use the version from google-cloud-core.
See googleapis#2391 for larger discussion.
1 parent 8382e2b commit b2af5a1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎core/google/cloud/connection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"""The base of the API call URL."""
2929

3030
DEFAULT_USER_AGENT = 'gcloud-python/{0}'.format(
31-
get_distribution('google-cloud').version)
31+
get_distribution('google-cloud-core').version)
3232
"""The user agent for google-cloud-python requests."""
3333

3434

‎unit_tests/test_connection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_http_w_creds(self):
7070
def test_user_agent_format(self):
7171
from pkg_resources import get_distribution
7272
expected_ua = 'gcloud-python/{0}'.format(
73-
get_distribution('google-cloud').version)
73+
get_distribution('google-cloud-core').version)
7474
conn = self._makeOne()
7575
self.assertEqual(conn.USER_AGENT, expected_ua)
7676

0 commit comments

Comments
 (0)