You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/12/01 09:57:56 UTC

(camel) branch camel-4.14.x updated: CAMEL-22743: camel-jbang - get platfomr-http with --all does not show management

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

davsclaus pushed a commit to branch camel-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.14.x by this push:
     new 1d63ec5c7926 CAMEL-22743: camel-jbang - get platfomr-http with --all does not show management
1d63ec5c7926 is described below

commit 1d63ec5c7926833985d657758370b66db385e327
Author: Claus Ibsen <cl...@gmail.com>
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");