diff --git a/pkg/engine2/path_selection/path_expansion.go b/pkg/engine2/path_selection/path_expansion.go index 6bf4e334e..f20cbda85 100644 --- a/pkg/engine2/path_selection/path_expansion.go +++ b/pkg/engine2/path_selection/path_expansion.go @@ -443,6 +443,7 @@ func expandPath( valid, err := checkUniquenessValidity(ctx, source.id, target.id) if err != nil { errs = errors.Join(errs, err) + return } if !valid { return