Skip to content

Commit

Permalink
[horus] fix typo (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody authored Sep 26, 2024
1 parent 2a85ee9 commit b78df9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/horus/core/horuser/node_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ func (h *Horuser) RestartOrRepair(ctx context.Context) {
func (h *Horuser) TryRestart(node db.NodeDataInfo) {
err := h.Drain(node.NodeName, node.ClusterName)
if err != nil {
msg += fmt.Sprintf("\n【安全驱逐节点尝试重启就绪:%v】\n", err)
msg := fmt.Sprintf("\n【安全驱逐节点尝试重启就绪:%v】\n", err)
alert.DingTalkSend(h.cc.NodeDownTime.DingTalk, msg)
return
}
msg := fmt.Sprintf("\n【节点正在尝试重启】\n 节点:%v\n 日期:%v\n 集群:%v\n", node.NodeName, node.FirstDate, node.ClusterName)

err := h.UnCordon(node.NodeName, node.ClusterName)
err = h.UnCordon(node.NodeName, node.ClusterName)
if err != nil {
msg += fmt.Sprintf("\n【取消不可调度状态失败:%v】\n", err)
alert.DingTalkSend(h.cc.NodeDownTime.DingTalk, msg)
Expand Down

0 comments on commit b78df9e

Please sign in to comment.