Skip to content

Commit

Permalink
Changing user-agent to use the version from google-cloud-core.
Browse files Browse the repository at this point in the history
See googleapis#2391 for larger discussion.
  • Loading branch information
dhermes committed Sep 22, 2016
1 parent a57b173 commit 0cbd30b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/google/cloud/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"""The base of the API call URL."""

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


Expand Down
2 changes: 1 addition & 1 deletion unit_tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_http_w_creds(self):
def test_user_agent_format(self):
from pkg_resources import get_distribution
expected_ua = 'gcloud-python/{0}'.format(
get_distribution('google-cloud').version)
get_distribution('google-cloud-core').version)
conn = self._makeOne()
self.assertEqual(conn.USER_AGENT, expected_ua)

Expand Down

0 comments on commit 0cbd30b

Please sign in to comment.