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:59 UTC
[camel] branch camel-3.18.x 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 camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.18.x by this push:
new 893b929743e fix route reload with unassigned route ids
893b929743e is described below
commit 893b929743e70de00d3b3d868cf4978c00337ee4
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());
}
}