diff options
Diffstat (limited to 'yt/cpp/mapreduce/client/client.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/client/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yt/cpp/mapreduce/client/client.cpp b/yt/cpp/mapreduce/client/client.cpp index bf9936a64a9..7e9ebd94599 100644 --- a/yt/cpp/mapreduce/client/client.cpp +++ b/yt/cpp/mapreduce/client/client.cpp @@ -1568,8 +1568,9 @@ TClientContext CreateClientContext( SetupClusterContext(context, serverName); - if (options.ProxyRole_) { - context.Config->Hosts = "hosts?role=" + *options.ProxyRole_; + if (context.Config->ProxyRole && context.Config->Hosts == "hosts") { + context.ProxyRole = context.Config->ProxyRole; + context.Config->Hosts = "hosts?role=" + *context.ProxyRole; } if (context.UseTLS || options.UseCoreHttpClient_) { |
