You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/11/30 13:16:41 UTC

(camel) 01/01: Camel-Jbang: List service command needs to take into account the consumers category

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch console-list-services
in repository https://gitbox.apache.org/repos/asf/camel.git

commit ae97fbdfee8df226b0804d667d0f85becccd17cc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Nov 30 14:15:32 2023 +0100

    Camel-Jbang: List service command needs to take into account the consumers category
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../org/apache/camel/dsl/jbang/core/commands/process/ListService.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListService.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListService.java
index 65399519a82..eb759dca992 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListService.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListService.java
@@ -119,7 +119,7 @@ public class ListService extends ProcessWatchCommand {
             jo = (JsonObject) jo.get(component);
         }
         if (jo != null) {
-            JsonArray arr = (JsonArray) jo.get("endpoints");
+            JsonArray arr = (JsonArray) jo.get("consumers");
             if (arr != null) {
                 for (Object o : arr) {
                     row = row.copy();