update agent node validate logic
This commit is contained in:
parent
626362fbad
commit
065ae07437
|
@ -506,7 +506,7 @@ func (h *APIHandler) authESNode(w http.ResponseWriter, req *http.Request, ps htt
|
|||
return
|
||||
}
|
||||
if oldNodeInfo.ProcessInfo.PID != nodeInfo.ProcessInfo.PID {
|
||||
h.WriteError(w, fmt.Sprintf("process id mismatch, got: %s,expected: %s", nodeInfo.ProcessInfo.PID, oldNodeInfo.ProcessInfo.PID), http.StatusInternalServerError)
|
||||
h.WriteError(w, fmt.Sprintf("process id mismatch, got: %d,expected: %d", nodeInfo.ProcessInfo.PID, oldNodeInfo.ProcessInfo.PID), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue