update agent node validate logic

This commit is contained in:
liugq 2023-06-09 20:59:00 +08:00
parent 626362fbad
commit 065ae07437
1 changed files with 1 additions and 1 deletions

View File

@ -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: %sexpected: %s", nodeInfo.ProcessInfo.PID, oldNodeInfo.ProcessInfo.PID), http.StatusInternalServerError)
h.WriteError(w, fmt.Sprintf("process id mismatch, got: %dexpected: %d", nodeInfo.ProcessInfo.PID, oldNodeInfo.ProcessInfo.PID), http.StatusInternalServerError)
return
}