Skip to content

Commit

Permalink
Merge pull request #422 from stuggi/improve_index
Browse files Browse the repository at this point in the history
Make sure to log error in findObjectsForSrc()
  • Loading branch information
openshift-merge-bot[bot] authored Oct 10, 2024
2 parents 29b4baf + 73b0690 commit ceed25f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/neutronapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ func (r *NeutronAPIReconciler) findObjectsForSrc(ctx context.Context, src client
}
err := r.List(ctx, crList, listOps)
if err != nil {
return []reconcile.Request{}
l.Error(err, fmt.Sprintf("listing %s for field: %s - %s", crList.GroupVersionKind().Kind, field, src.GetNamespace()))
return requests
}

for _, item := range crList.Items {
Expand Down

0 comments on commit ceed25f

Please sign in to comment.