From 8b0fe52be2892dede1112573a05ebdf3d7977716 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Fri, 23 Jan 2015 18:50:51 -0800 Subject: [PATCH] agent/http: fix service registration with nil checks value --- command/agent/agent_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {