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/12/27 13:01:21 UTC

[camel] branch main updated: fix route reload with unassigned route ids

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 853c2509fbd fix route reload with unassigned route ids
853c2509fbd is described below

commit 853c2509fbd98cfe7b569fa1c792118b7a11e774
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Dec 27 14:01:09 2022 +0100

    fix route reload with unassigned route ids
---
 .../main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java b/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java
index ecf753715ac..faa64ed8997 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java
@@ -271,7 +271,7 @@ public class RouteWatcherReloadStrategy extends FileWatcherResourceReloadStrateg
                 StringJoiner sj = new StringJoiner("\n    ");
                 for (String id : ids) {
                     Route route = getCamelContext().getRoute(id);
-                    if (route.isCustomId()) {
+                    if (!route.isCustomId()) {
                         sj.add(route.getEndpoint().getEndpointUri());
                     }
                 }