Skip to content

Commit

Permalink
fixup! Update NewNodeManager.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Dec 21, 2023
1 parent 8f303d4 commit e06ab10
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,9 @@ 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" }
Failure(
s"There is already a ${duplicatesH.size} node(s) with hostname '${name}' in Rudder. You can not add it again."
s"${startMessage} with hostname '${name}' in Rudder. You can not add it again."
)
}
} yield {}
Expand Down

0 comments on commit e06ab10

Please sign in to comment.