diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-06-24 13:01:03 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-06-24 13:15:04 +0300 |
commit | 822f05366f99c6075b8a029679632c0a6c08418c (patch) | |
tree | 7036be847f0780bbf1b5c4ee75ac8effebd67f38 /contrib | |
parent | 0d8df46e7659904fe6aa3c0ca9d1e75b3fee680f (diff) | |
download | ydb-822f05366f99c6075b8a029679632c0a6c08418c.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/python/ydb/py3/ydb/iam/auth.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/python/ydb/py3/ydb/iam/auth.py b/contrib/python/ydb/py3/ydb/iam/auth.py index 5fd179d2af..c4096c096b 100644 --- a/contrib/python/ydb/py3/ydb/iam/auth.py +++ b/contrib/python/ydb/py3/ydb/iam/auth.py @@ -21,8 +21,13 @@ except ImportError: from ydb.public.api.client.yc_public.iam import iam_token_service_pb2_grpc from ydb.public.api.client.yc_public.iam import iam_token_service_pb2 except ImportError: - iam_token_service_pb2_grpc = None - iam_token_service_pb2 = None + try: + # This attempt is to enable the IAM auth inside the YDB repository on Arcadia + from contrib.ydb.public.api.client.yc_public.iam import iam_token_service_pb2_grpc + from contrib.ydb.public.api.client.yc_public.iam import iam_token_service_pb2 + except ImportError: + iam_token_service_pb2_grpc = None + iam_token_service_pb2 = None try: import requests |