aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksei Kobzev <apkobzev@ydb.tech>2024-12-25 16:15:47 +0700
committerGitHub <noreply@github.com>2024-12-25 12:15:47 +0300
commitd4bdf37ac22e881e63e70ec2fd18a4192a0bdb5c (patch)
treebb275021c2c36e466ac81ccef553820d9377f5d1
parent31f26f88fc35a66e45573bff8fb52f615da29787 (diff)
downloadydb-d4bdf37ac22e881e63e70ec2fd18a4192a0bdb5c.tar.gz
[ydb_configure] use pdisk_config section for expected_slot_count (#12920)
-rw-r--r--ydb/tools/cfg/static.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ydb/tools/cfg/static.py b/ydb/tools/cfg/static.py
index 4520de5ab3..d916edcbf0 100644
--- a/ydb/tools/cfg/static.py
+++ b/ydb/tools/cfg/static.py
@@ -394,9 +394,18 @@ class StaticConfigGenerator(object):
if self.host_configs:
normalized_config["host_configs"] = copy.deepcopy(self.host_configs)
for host_config in normalized_config["host_configs"]:
+ if 'generation' in host_config:
+ # inside config.yaml we do not use section generation in host_configs
+ host_config.pop('generation')
if 'drives' in host_config:
# inside config.yaml we should use field drive in host_configs section
host_config['drive'] = host_config.pop('drives')
+ for drive in host_config['drive']:
+ if 'expected_slot_count' in drive:
+ # inside config.yaml we should use pdisk_config section for expected_slot_count
+ drive['pdisk_config'] = {
+ 'expected_slot_count': drive.pop('expected_slot_count')
+ }
if self.table_service_config:
normalized_config["table_service_config"] = self.table_service_config