mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Removed bad error message for health check status.
This commit is contained in:
parent
defa2a6180
commit
a48463f100
@ -273,7 +273,7 @@ func (s *HTTPServer) AgentRegisterService(resp http.ResponseWriter, req *http.Re
|
||||
for _, check := range chkTypes {
|
||||
if check.Status != "" && !structs.ValidStatus(check.Status) {
|
||||
resp.WriteHeader(400)
|
||||
resp.Write([]byte("Status for checks must 'passing', 'warning', 'critical', 'unknown'"))
|
||||
resp.Write([]byte("Status for checks must 'passing', 'warning', 'critical'"))
|
||||
return nil, nil
|
||||
}
|
||||
if !check.Valid() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user