Commit 8768d335 authored by 陈子龙's avatar 陈子龙

自动化运维 fix

parent cd6e7080
......@@ -475,9 +475,11 @@ func StatusDetection(ip string) (ipConn bool) {
output, err := cmd.Output()
if err != nil {
fmt.Println("执行错误:", err)
err = resp.CmdExecError.WithError(err)
return
}
fmt.Println("执行成功:")
fmt.Println(string(output))
//return string(output), nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment