Skip to content

Commit

Permalink
using queryoptionfilter to populate args.filter
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Jul 29, 2023
1 parent c7c5876 commit db1039a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agent/catalog_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,11 @@ func (s *HTTPHandlers) CatalogServices(resp http.ResponseWriter, req *http.Reque
return nil, err
}

var filterExpression string
s.parseFilter(req, &filterExpression)

args.NodeMetaFilters = s.parseMetaFilter(req)
args.Filter = filterExpression
if done := s.parse(resp, req, &args.Datacenter, &args.QueryOptions); done {
return nil, nil
}
args.Filter = args.QueryOptions.Filter
var out structs.IndexedServices
defer setMeta(resp, &out.QueryMeta)

Expand Down

0 comments on commit db1039a

Please sign in to comment.