Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit195d644

Browse files
authored
fix: dont pass credentials to StorageClient (#1608)
if transport is provided with credentials. gRPC client will throw[error](https://github.com/googleapis/python-storage/blob/323cddd5d439e04e12614106eab1928fd4008c0b/google/cloud/_storage_v2/services/storage/client.py#L691-L695)if credentials are passed to client's instance in addition to passing itto transport.
1 parent323cddd commit195d644

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

‎google/cloud/storage/_experimental/asyncio/async_grpc_client.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def _create_async_grpc_client(
6969
transport=transport_cls(credentials=credentials,channel=channel)
7070

7171
returnstorage_v2.StorageAsyncClient(
72-
credentials=credentials,
7372
transport=transport,
7473
client_info=client_info,
7574
client_options=client_options,

‎tests/unit/asyncio/test_async_grpc_client.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def test_constructor_default_options(self, mock_async_storage_client):
4646
)
4747
mock_transport=mock_transport_cls.return_value
4848
mock_async_storage_client.assert_called_once_with(
49-
credentials=mock_creds,
5049
transport=mock_transport,
5150
client_options=None,
5251
client_info=None,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp