diff --git a/command/agent/agent_endpoint.go b/command/agent/agent_endpoint.go index d7cfeb9e7f..544dbdee1f 100644 --- a/command/agent/agent_endpoint.go +++ b/command/agent/agent_endpoint.go @@ -142,7 +142,7 @@ func (s *HTTPServer) AgentRegisterService(resp http.ResponseWriter, req *http.Re case "checks": chkTypes, ok := v.([]interface{}) if !ok { - return nil + continue } for _, chkType := range chkTypes { if err := FixupCheckType(chkType); err != nil {