agent/http: fix service registration with nil checks value

This commit is contained in:
Ryan Uber 2015-01-23 18:50:51 -08:00
parent b5e8111485
commit 8b0fe52be2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {