Skip to content

Commit

Permalink
feat(mongodb): configServer增加角色记录 #1806
Browse files Browse the repository at this point in the history
  • Loading branch information
xiepaup committed Nov 15, 2023
1 parent 6893392 commit 58bc8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm-ui/backend/db_meta/api/cluster/mongocluster/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58bc8c0

Please sign in to comment.