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

自动化运维 fix

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