This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 3224e7452d3 Camel-Jbang: List service command needs to take into
account the consumers category (#12276)
3224e7452d3 is described below
commit 3224e7452d32885d143b66e80fc851cc07c9f8f4
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Nov 30 14:26:02 2023 +0100
Camel-Jbang: List service command needs to take into account the consumers
category (#12276)
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../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();