From 58bc8c07b357fb90c65773b678ad49955ae2f4bf Mon Sep 17 00:00:00 2001 From: xiepaup Date: Wed, 15 Nov 2023 16:31:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(mongodb):=20configServer=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E8=AE=B0=E5=BD=95=20#1806?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/db_meta/api/cluster/mongocluster/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-ui/backend/db_meta/api/cluster/mongocluster/create.py b/dbm-ui/backend/db_meta/api/cluster/mongocluster/create.py index 1afca27cc0..307376324c 100644 --- a/dbm-ui/backend/db_meta/api/cluster/mongocluster/create.py +++ b/dbm-ui/backend/db_meta/api/cluster/mongocluster/create.py @@ -70,7 +70,7 @@ def create_mongo_cluster( all_confies.extend(config["nodes"]) for shard in config["nodes"]: if shard["role"] == InstanceRole.MONGO_M1: - primaries.append({"ip": shard["ip"], "port": shard["port"], "shard": storage["shard"]}) + primaries.append({"ip": shard["ip"], "port": shard["port"], "shard": config["shard"]}) create_domain_precheck(bk_biz_id=bk_biz_id, name=name, immute_domain=immute_domain, cluster_type=cluster_type) storage_objs = create_storage_precheck(all_storages)