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 2022/10/28 07:41:19 UTC

[camel] 02/02: Update yaml example

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

commit ad67fb7fa0e61bcda65236d9269a4818d36880dd
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Oct 28 09:41:06 2022 +0200

    Update yaml example
---
 .../modules/ROOT/pages/route-configuration.adoc    | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/pages/route-configuration.adoc b/docs/user-manual/modules/ROOT/pages/route-configuration.adoc
index 2ffa066e0ad..f97bb2746e7 100644
--- a/docs/user-manual/modules/ROOT/pages/route-configuration.adoc
+++ b/docs/user-manual/modules/ROOT/pages/route-configuration.adoc
@@ -260,17 +260,17 @@ And in the YAML routes you can assign which configurations to use:
     route-configuration-id: "yamlError"
     from:
       uri: "timer:yaml?period=3s"
-    steps:
-      - set-body:
-          simple: "Timer fired ${header.CamelTimerCounter} times"
-      - to:
-          uri: "log:yaml"
-          parameters:
-            show-body-type: false
-            show-exchange-pattern: false
-      - throw-exception:
-          exception-type: "java.lang.IllegalArgumentException"
-          message: "Error from yaml"
+      steps:
+        - set-body:
+            simple: "Timer fired ${header.CamelTimerCounter} times"
+        - to:
+            uri: "log:yaml"
+            parameters:
+              show-body-type: false
+              show-exchange-pattern: false
+        - throw-exception:
+            exception-type: "java.lang.IllegalArgumentException"
+            message: "Error from yaml"
 ----
 
 In this example the route is assigned the _yamlError_ route configuration by the exact ID.