Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfHammer committed Oct 7, 2024
1 parent 445aea1 commit 1eea3f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/controllers/servicebinding_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ func (r *ServiceBindingReconciler) Reconcile(ctx context.Context, req ctrl.Reque
serviceBinding.SetReadyCondition(cfv1alpha1.ConditionUnknown, string(cfbinding.State), cfbinding.StateDescription)
return ctrl.Result{Requeue: true}, nil
} else if cfbinding != nil && cfbinding.State != facade.BindingStateReady {

//return the reconcile function to not reconcile and error message
return ctrl.Result{}, fmt.Errorf("orphaned instance is not ready to be adopted")
// return the reconcile function to not reconcile and error message
return ctrl.Result{}, fmt.Errorf("orphaned binding is not ready to be adopted")
}
}
}
Expand Down

0 comments on commit 1eea3f2

Please sign in to comment.