From 24d79ff84f7ed104f2106d5a1e33161d93f9badf Mon Sep 17 00:00:00 2001 From: Alexander Rutkovsky Date: Thu, 20 Feb 2025 09:57:29 +0300 Subject: Fix typo (#14820) --- ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp b/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp index c570ffd4f8d..5dd514e6b53 100644 --- a/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp +++ b/ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp @@ -164,9 +164,9 @@ int TCommandStorageConfigReplace::Run(TConfig& config) { auto client = NYdb::NConfig::TConfigClient(*driver); auto status = [&]() { - if (SwitchDedicatedStorageSection && *SwitchDedicatedStorageSection) { + if (SwitchDedicatedStorageSection && !*SwitchDedicatedStorageSection) { return client.ReplaceConfigDisableDedicatedStorageSection(ClusterYaml.value()).GetValueSync(); - } else if (SwitchDedicatedStorageSection && !*SwitchDedicatedStorageSection) { + } else if (SwitchDedicatedStorageSection && *SwitchDedicatedStorageSection) { return client.ReplaceConfigEnableDedicatedStorageSection(ClusterYaml.value(), StorageYaml.value()).GetValueSync(); } else if (DedicatedConfigMode) { return client.ReplaceConfig(ClusterYaml.value(), StorageYaml.value()).GetValueSync(); -- cgit v1.3