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 38cf00b commit e363f47
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,11 @@ def mongos_autofix(root_id: str, ticket_data: Optional[Dict], sub_sub_kwargs: Ac
)

# mongos修改db_meta数据
info["db_type"] = "mongos"
info["created_by"] = sub_sub_get_kwargs.payload.get("created_by")
info["bk_biz_id"] = sub_sub_get_kwargs.payload.get("bk_biz_id")
cluster_mongos = {}
cluster_mongos["mongos"] = [info]
cluster_mongos["db_type"] = "mongos"
cluster_mongos["created_by"] = sub_sub_get_kwargs.payload.get("created_by")
cluster_mongos["bk_biz_id"] = sub_sub_get_kwargs.payload.get("bk_biz_id")
kwargs = sub_sub_get_kwargs.get_change_meta_replace_kwargs(info=cluster_mongos, instance={})
sub_sub_pipeline.add_act(
act_name=_("MongoDB-mongos修改meta"), act_component_code=CMRMongoDBMetaComponent.code, kwargs=kwargs
Expand Down

0 comments on commit e363f47

Please sign in to comment.