Commit b134e363 authored by 陈子龙's avatar 陈子龙

主机状态检测 fix

parent 87e9e94f
......@@ -461,6 +461,7 @@ func (h *HostManageSvc) ListStateHostManage(req request.StateHostManageReq) (err
fail := make([]int, 0)
for i := 0; i < len(hostManageList); i++ {
go func() {
i = i
//修改状态
connStatus := StatusDetection(hostManageList[i].Ip)
if connStatus == 1 {
......
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