From 6faf3a9fb5ebf84a4a8c913bc44ec88a369fb1c9 Mon Sep 17 00:00:00 2001 From: Ivan E Date: Thu, 13 Apr 2023 14:49:51 +0300 Subject: [PATCH 1/2] Change assert text with right fix command --- ydb/aio/iam.py | 2 +- ydb/iam/auth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ydb/aio/iam.py b/ydb/aio/iam.py index 64490db9..532537bb 100644 --- a/ydb/aio/iam.py +++ b/ydb/aio/iam.py @@ -26,7 +26,7 @@ class TokenServiceCredentials(AbstractExpiringTokenCredentials): def __init__(self, iam_endpoint=None, iam_channel_credentials=None): super(TokenServiceCredentials, self).__init__() - assert iam_token_service_pb2_grpc is not None, "run pip install==ydb[yc] to use service account credentials" + assert iam_token_service_pb2_grpc is not None, "run pip install \"ydb[yc]\" to use service account credentials" self._get_token_request_timeout = 10 self._iam_endpoint = "iam.api.cloud.yandex.net:443" if iam_endpoint is None else iam_endpoint self._iam_channel_credentials = {} if iam_channel_credentials is None else iam_channel_credentials diff --git a/ydb/iam/auth.py b/ydb/iam/auth.py index 2623818d..f1fd514c 100644 --- a/ydb/iam/auth.py +++ b/ydb/iam/auth.py @@ -45,7 +45,7 @@ def get_jwt(account_id, access_key_id, private_key, jwt_expiration_timeout): class TokenServiceCredentials(credentials.AbstractExpiringTokenCredentials): def __init__(self, iam_endpoint=None, iam_channel_credentials=None, tracer=None): super(TokenServiceCredentials, self).__init__(tracer) - assert iam_token_service_pb2_grpc is not None, "run pip install==ydb[yc] to use service account credentials" + assert iam_token_service_pb2_grpc is not None, "run pip install \"ydb[yc]\" to use service account credentials" self._get_token_request_timeout = 10 self._iam_token_service_pb2 = iam_token_service_pb2 self._iam_token_service_pb2_grpc = iam_token_service_pb2_grpc From bc1914ca72fd763e337ea396239bea404a2f2913 Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Wed, 24 May 2023 11:08:43 +0300 Subject: [PATCH 2/2] Fix for linter --- ydb/aio/iam.py | 2 +- ydb/iam/auth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ydb/aio/iam.py b/ydb/aio/iam.py index 532537bb..eab8faff 100644 --- a/ydb/aio/iam.py +++ b/ydb/aio/iam.py @@ -26,7 +26,7 @@ class TokenServiceCredentials(AbstractExpiringTokenCredentials): def __init__(self, iam_endpoint=None, iam_channel_credentials=None): super(TokenServiceCredentials, self).__init__() - assert iam_token_service_pb2_grpc is not None, "run pip install \"ydb[yc]\" to use service account credentials" + assert iam_token_service_pb2_grpc is not None, 'run pip install "ydb[yc]" to use service account credentials' self._get_token_request_timeout = 10 self._iam_endpoint = "iam.api.cloud.yandex.net:443" if iam_endpoint is None else iam_endpoint self._iam_channel_credentials = {} if iam_channel_credentials is None else iam_channel_credentials diff --git a/ydb/iam/auth.py b/ydb/iam/auth.py index f1fd514c..82e7c9f6 100644 --- a/ydb/iam/auth.py +++ b/ydb/iam/auth.py @@ -45,7 +45,7 @@ def get_jwt(account_id, access_key_id, private_key, jwt_expiration_timeout): class TokenServiceCredentials(credentials.AbstractExpiringTokenCredentials): def __init__(self, iam_endpoint=None, iam_channel_credentials=None, tracer=None): super(TokenServiceCredentials, self).__init__(tracer) - assert iam_token_service_pb2_grpc is not None, "run pip install \"ydb[yc]\" to use service account credentials" + assert iam_token_service_pb2_grpc is not None, 'run pip install "ydb[yc]" to use service account credentials' self._get_token_request_timeout = 10 self._iam_token_service_pb2 = iam_token_service_pb2 self._iam_token_service_pb2_grpc = iam_token_service_pb2_grpc