Commit 3ac7fbe8 authored by 陈子龙's avatar 陈子龙

主机管理状态检测 fix

parent 57b29eb5
......@@ -634,6 +634,7 @@ func StatusDetection(ip string) (ipConn int, err error) {
conf.Logger.Info("执行shell命令", zap.String("err:", err.Error()))
return
}
cmd.Wait()
if cmd.ProcessState.Success() {
fmt.Println("连通性测试成功!")
return 0, 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