From 8c738eb7556dbd90344b3691486b5bd9a83e843a Mon Sep 17 00:00:00 2001 From: yyhenryyy Date: Fri, 18 Oct 2024 10:52:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(mongodb):=20mongos=E8=87=AA=E6=84=88?= =?UTF-8?q?=EF=BC=8Cmongo=E5=AE=9E=E4=BE=8B=E4=B8=8B=E6=9E=B6=20#7010?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flow/engine/bamboo/scene/mongodb/mongodb_autofix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py b/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py index c8684aa522..838a33d4c0 100644 --- a/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py +++ b/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py @@ -57,12 +57,12 @@ def shard_get_data(self) -> Dict: config = cluster_info.get_config() shards = cluster_info.get_shards() cluster = {} - mongos = [] + mongos_nodes = [] mongo_config = [] mongodb = [] # 获取mongos参数 for mongos in self.autofix_info["mongos_list"]: - mongos.append( + mongos_nodes.append( { "ip": mongos["ip"], "bk_cloud_id": bk_cloud_id, @@ -124,7 +124,7 @@ def shard_get_data(self) -> Dict: break ip_info["instances"] = instances mongodb.append(ip_info) - cluster["mongos"] = mongos + cluster["mongos"] = mongos_nodes cluster["mongo_config"] = mongo_config cluster["mongodb"] = mongodb flow_parameter["infos"]["MongoShardedCluster"].append(cluster)