aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-06-24 13:01:03 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-06-24 13:15:04 +0300
commit822f05366f99c6075b8a029679632c0a6c08418c (patch)
tree7036be847f0780bbf1b5c4ee75ac8effebd67f38 /contrib
parent0d8df46e7659904fe6aa3c0ca9d1e75b3fee680f (diff)
downloadydb-822f05366f99c6075b8a029679632c0a6c08418c.tar.gz
Intermediate changes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/python/ydb/py3/ydb/iam/auth.py9
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