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 69716c49aad camel-jbang - Show source code line when using --source
69716c49aad is described below

commit 69716c49aad85a5cf8ee9cadc4905367945d09c4
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Sep 16 14:12:59 2022 +0200

    camel-jbang - Show source code line when using --source
---
 .../main/java/org/apache/camel/cli/connector/LocalCliConnector.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
 
b/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
index 2f792fed8f3..8ccbce5d778 100644
--- 
a/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
+++ 
b/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
@@ -323,8 +323,7 @@ public class LocalCliConnector extends ServiceSupport 
implements CliConnector, C
                     .getDevConsoleResolver().resolveDevConsole("route");
             if (dc != null && dc2 != null) {
                 JsonObject json = (JsonObject) 
dc.call(DevConsole.MediaType.JSON);
-                JsonObject json2
-                        = (JsonObject) dc2.call(DevConsole.MediaType.JSON, 
Map.of("processors", "true", "source", "true"));
+                JsonObject json2 = (JsonObject) 
dc2.call(DevConsole.MediaType.JSON, Map.of("processors", "true"));
                 if (json != null && json2 != null) {
                     root.put("context", json);
                     root.put("routes", json2.get("routes"));

Reply via email to