Skip to content

Commit

Permalink
feat(mongodb): mongos自愈,mongo实例下架 TencentBlueKing#7010
Browse files Browse the repository at this point in the history
  • Loading branch information
yyhenryyy committed Oct 18, 2024
1 parent fa07d0e commit 8920fad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def shard_get_data(self) -> Dict:
"spec_id": mongos["spec_id"],
"down": True,
"spec_config": mongos["spec_config"],
"target": self.autofix_info[mongos["ip"]],
"target": self.autofix_info[mongos["ip"]][0],
"instances": [
{
"cluster_id": cluster_id,
Expand All @@ -92,7 +92,7 @@ def shard_get_data(self) -> Dict:
"spec_id": mongod["spec_id"],
"down": True,
"spec_config": mongod["spec_config"],
"target": self.autofix_info[mongod["ip"]],
"target": self.autofix_info[mongod["ip"]][0],
"instances": [],
}
instances = []
Expand Down Expand Up @@ -164,7 +164,7 @@ def rs_get_data(self) -> Dict:
"spec_id": mongod["spec_id"],
"down": True,
"spec_config": mongod["spec_config"],
"target": self.autofix_info[mongod["ip"]],
"target": self.autofix_info[mongod["ip"]][0],
"instances": instances,
}
)
Expand Down

0 comments on commit 8920fad

Please sign in to comment.