Commit 195c3777 authored by 陈子龙's avatar 陈子龙

自动化运维 fix

parent 5dd58bf3
......@@ -475,14 +475,11 @@ func StatusDetection(ip string) (ipConn bool) {
output, err := cmd.Output()
if err != nil {
fmt.Println("执行错误:", err)
fmt.Println("执行错误output:", string(output))
err = resp.CmdExecError.WithError(err)
return
fmt.Println("ping:", string(output))
return false
}
fmt.Println("执行成功:")
fmt.Println(string(output))
fmt.Println("ping:", string(output))
//return string(output), nil
return
return true
}
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