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

davsclaus 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 9a945afaa622 CAMEL-22743: camel-jbang - get platfomr-http with --all 
does not show management
9a945afaa622 is described below

commit 9a945afaa622e366a8fd28be22d1edd4fd8d2e66
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Dec 1 10:57:05 2025 +0100

    CAMEL-22743: camel-jbang - get platfomr-http with --all does not show 
management
---
 .../dsl/jbang/core/commands/process/ListPlatformHttp.java  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListPlatformHttp.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListPlatformHttp.java
index a24a854df5f4..8c63a8fef0f1 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListPlatformHttp.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListPlatformHttp.java
@@ -77,14 +77,14 @@ public class ListPlatformHttp extends ProcessWatchCommand {
                         row.uptime = extractSince(ph);
                         row.age = TimeUtils.printSince(row.uptime);
 
-                        JsonObject jo = (JsonObject) root.get("platform-http");
-                        if (jo != null) {
-                            String server = jo.getString("server");
-                            JsonArray arr = (JsonArray) jo.get("endpoints");
+                        JsonObject jph = (JsonObject) 
root.get("platform-http");
+                        if (jph != null) {
+                            String server = jph.getString("server");
+                            JsonArray arr = (JsonArray) jph.get("endpoints");
                             if (arr != null) {
                                 for (int i = 0; i < arr.size(); i++) {
                                     row = row.copy();
-                                    jo = (JsonObject) arr.get(i);
+                                    JsonObject jo = (JsonObject) arr.get(i);
                                     row.server = server;
                                     row.url = jo.getString("url");
                                     row.path = jo.getString("path");
@@ -95,11 +95,11 @@ public class ListPlatformHttp extends ProcessWatchCommand {
                                 }
                             }
                             if (all) {
-                                arr = (JsonArray) 
jo.get("managementEndpoints");
+                                arr = (JsonArray) 
jph.get("managementEndpoints");
                                 if (arr != null) {
                                     for (int i = 0; i < arr.size(); i++) {
                                         row = row.copy();
-                                        jo = (JsonObject) arr.get(i);
+                                        JsonObject jo = (JsonObject) 
arr.get(i);
                                         row.server = server;
                                         row.url = jo.getString("url");
                                         row.path = jo.getString("path");

Reply via email to