Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UniqueHost: Fix incorrect identification of conflicting route
When a route is rejected due to the host already being claimed, the incorrect route was being identified as the conflicting one. The problem was that the first route in the array was always being returned as the conflicting route, instead of the actual conflicting one. This fix addresses the issue by returning the last route in the slice, which corresponds to the correct conflicting route. This ensures that the "HostAlreadyClaimed" error properly identifies the correct conflicting route, taking into account both host and path. Fixes: https://issues.redhat.com/browse/OCPBUGS-16707
- Loading branch information