Skip to content

Commit 24d79ff

Browse files
authored
Fix typo (#14820)
1 parent cbcbac8 commit 24d79ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/public/lib/ydb_cli/commands/ydb_storage_config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ int TCommandStorageConfigReplace::Run(TConfig& config) {
164164
auto client = NYdb::NConfig::TConfigClient(*driver);
165165

166166
auto status = [&]() {
167-
if (SwitchDedicatedStorageSection && *SwitchDedicatedStorageSection) {
167+
if (SwitchDedicatedStorageSection && !*SwitchDedicatedStorageSection) {
168168
return client.ReplaceConfigDisableDedicatedStorageSection(ClusterYaml.value()).GetValueSync();
169-
} else if (SwitchDedicatedStorageSection && !*SwitchDedicatedStorageSection) {
169+
} else if (SwitchDedicatedStorageSection && *SwitchDedicatedStorageSection) {
170170
return client.ReplaceConfigEnableDedicatedStorageSection(ClusterYaml.value(), StorageYaml.value()).GetValueSync();
171171
} else if (DedicatedConfigMode) {
172172
return client.ReplaceConfig(ClusterYaml.value(), StorageYaml.value()).GetValueSync();

0 commit comments

Comments
 (0)