Skip to content

Commit

Permalink
Add error log when reconcileCategories returns error
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickstruyf3 committed Aug 22, 2023
1 parent 3fa297a commit dec2a0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/nutanixcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ func (r *NutanixClusterReconciler) reconcileNormal(rctx *nctx.ClusterContext) (r

err := r.reconcileCategories(rctx)
if err != nil {
log.Error(err, "error occurred while reconciling categories")
// Don't return fatal error but keep retrying until categories are created.
return reconcile.Result{}, err
}
Expand Down

0 comments on commit dec2a0b

Please sign in to comment.