fix: no silent failure when auto enroll is already running
This commit is contained in:
parent
9020e691de
commit
3daf21c2af
|
@ -399,6 +399,7 @@ func (h *APIHandler) autoEnrollESNode(w http.ResponseWriter, req *http.Request,
|
||||||
}
|
}
|
||||||
|
|
||||||
if autoEnrollRunning.Load() {
|
if autoEnrollRunning.Load() {
|
||||||
|
panic(errors.New("auto_enroll is already running in background"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue