Skip to content

Commit

Permalink
fixup! fixup! Update NewNodeManager.scala
Browse files Browse the repository at this point in the history
Fixes #22197: We can accept a node with an existing hostname even if node_accept_duplicated_hostname is false
  • Loading branch information
VinceMacBuche committed Dec 21, 2023
1 parent e06ab10 commit 79fa107
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -900,7 +900,8 @@ class AcceptHostnameAndIp(
// if not, we don't group them that the duplicate appears in the list
noDuplicatesH <- if (duplicatesH.isEmpty) Full({})
else {
val startMessage = if (duplicates.size >= 2) { "There are already ${duplicatesH.size} nodes" } { "There is already a node" }
val startMessage =
if (duplicatesH.size >= 2) "There are already ${duplicatesH.size} nodes" else "There is already a node"
Failure(
s"${startMessage} with hostname '${name}' in Rudder. You can not add it again."
)
Expand Down

0 comments on commit 79fa107

Please sign in to comment.