Skip to content

Commit 9b0f93c

Browse files
modified error return for prefixclaimcontroller
1 parent 4d6b6eb commit 9b0f93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/prefixclaim_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (r *PrefixClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request)
226226
prefixModel, err := r.NetboxClient.RestoreExistingPrefixByHash(h)
227227
if err != nil {
228228
if setConditionErr := r.EventStatusRecorder.Report(ctx, prefixClaim, netboxv1.ConditionPrefixAssignedFalse, corev1.EventTypeWarning, err); setConditionErr != nil {
229-
return ctrl.Result{}, fmt.Errorf("error updating status: %w, when look up of prefix by hash failed: %w", setConditionErr, err)
229+
return ctrl.Result{}, setConditionErr
230230
}
231231
return ctrl.Result{Requeue: true}, nil
232232
}

0 commit comments

Comments
 (0)