Dietrich Schulten created CAMEL-16559:
-----------------------------------------

             Summary: Consul catalog action "LIST_SERVICES" calls 
CatalogClient.getNodes
                 Key: CAMEL-16559
                 URL: https://issues.apache.org/jira/browse/CAMEL-16559
             Project: Camel
          Issue Type: Bug
          Components: camel-consul
    Affects Versions: 3.9.0
            Reporter: Dietrich Schulten


Probably a copy-paste error in {{ConsulCatalogProducer}}. The handler for 
{{LIST_SERVICES}} calls {{getNodes}}: 
{code:java}
 @InvokeOnHeader(ConsulCatalogActions.LIST_NODES)
protected void listNodes(Message message) throws Exception {
    processConsulResponse(message, 
getClient().getNodes(buildQueryOptions(message, getConfiguration())));
}

@InvokeOnHeader(ConsulCatalogActions.LIST_SERVICES)
protected void listServices(Message message) throws Exception {
    processConsulResponse(message, 
getClient().getNodes(buildQueryOptions(message, getConfiguration())));
}{code}
 Should call {{getServices(queryOptions)}} instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to