Skip to content

Commit 6b42be9

Browse files
authored
Merge pull request #2286 from dhermes/upgrade-to-primary-ua
Upgrading gRPC user agent from secondary to primary.
2 parents 4f74c7d + 58a0ceb commit 6b42be9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/cloud/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def make_secure_stub(credentials, user_agent, stub_class, host):
651651
transport_creds, auth_creds)
652652
target = '%s:%d' % (host, http_client.HTTPS_PORT)
653653
channel_args = (
654-
('grpc.secondary_user_agent', user_agent),
654+
('grpc.primary_user_agent', user_agent),
655655
)
656656
channel = grpc.secure_channel(target, channel_creds,
657657
options=channel_args)

unit_tests/test__helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def mock_plugin(*args):
975975
target = '%s:%d' % (host, http_client.HTTPS_PORT)
976976
secure_args = (target, COMPOSITE_CREDS)
977977
secure_kwargs = {
978-
'options': (('grpc.secondary_user_agent', user_agent),)
978+
'options': (('grpc.primary_user_agent', user_agent),)
979979
}
980980
self.assertEqual(grpc_mod.secure_channel_args,
981981
(secure_args, secure_kwargs))

0 commit comments

Comments
 (0)