Skip to content

Commit e24fa71

Browse files
committed
Small fix to set env
1 parent b254cdd commit e24fa71

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ydb/core/driver_lib/run/run.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,9 +1341,8 @@ void TKikimrRunner::InitializeXdsBootstrapConfig(const TKikimrRunConfig& runConf
13411341

13421342
static const TString XDS_BOOTSTRAP_ENV = "GRPC_XDS_BOOTSTRAP";
13431343
static const TString XDS_BOOTSTRAP_CONFIG_ENV = "GRPC_XDS_BOOTSTRAP_CONFIG";
1344-
if (GetEnv(XDS_BOOTSTRAP_ENV).empty() && GetEnv(XDS_BOOTSTRAP_CONFIG_ENV).empty()) {
1345-
TXdsBootstrapConfigBuilder xdsConfigBuilder(runConfig.AppConfig.GetGRpcConfig().GetXdsBootstrap());
1346-
SetEnv(XDS_BOOTSTRAP_CONFIG_ENV, xdsConfigBuilder.Build());
1344+
if (GetEnv(XDS_BOOTSTRAP_ENV).empty() && GetEnv(XDS_BOOTSTRAP_CONFIG_ENV).empty() && runConfig.AppConfig.GetGRpcConfig().HasXdsBootstrap()) {
1345+
SetEnv(XDS_BOOTSTRAP_CONFIG_ENV, TXdsBootstrapConfigBuilder(runConfig.AppConfig.GetGRpcConfig().GetXdsBootstrap()).Build());
13471346
}
13481347
}
13491348

0 commit comments

Comments
 (0)