From 738ca218d689d634d4634895edca6b3ce13788ab Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Wed, 19 May 2021 20:22:21 +0000 Subject: [PATCH] fix: use DEFAULT_HOST --- .../%name_%version/%sub/services/%service/transports/grpc.py.j2 | 2 +- .../%sub/services/%service/transports/grpc_asyncio.py.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc.py.j2 index 92cd7aebb3..3d9fbf9820 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc.py.j2 @@ -211,7 +211,7 @@ class {{ service.name }}GrpcTransport({{ service.name }}Transport): quota_project_id=quota_project_id, default_scopes=cls.AUTH_SCOPES, scopes=scopes, - default_host=host, + default_host=cls.DEFAULT_HOST, **kwargs ) diff --git a/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc_asyncio.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc_asyncio.py.j2 index f9c285368a..0b72ecfe9e 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc_asyncio.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc_asyncio.py.j2 @@ -84,7 +84,7 @@ class {{ service.grpc_asyncio_transport_name }}({{ service.name }}Transport): quota_project_id=quota_project_id, default_scopes=cls.AUTH_SCOPES, scopes=scopes, - default_host=host, + default_host=cls.DEFAULT_HOST, **kwargs )