mirror of https://github.com/hashicorp/consul
Merge pull request #2288 from hashicorp/b-unknown
Removed bad error message for health check status.pull/2285/head
commit
1a4c8a123e
|
@ -273,7 +273,7 @@ func (s *HTTPServer) AgentRegisterService(resp http.ResponseWriter, req *http.Re
|
||||||
for _, check := range chkTypes {
|
for _, check := range chkTypes {
|
||||||
if check.Status != "" && !structs.ValidStatus(check.Status) {
|
if check.Status != "" && !structs.ValidStatus(check.Status) {
|
||||||
resp.WriteHeader(400)
|
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
|
return nil, nil
|
||||||
}
|
}
|
||||||
if !check.Valid() {
|
if !check.Valid() {
|
||||||
|
|
Loading…
Reference in New Issue