Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
s/conditons/conditions
  • Loading branch information
razo7 committed Jan 3, 2024
1 parent 30e2b5e commit 3d791ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/fenceagentsremediation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (
// errors
errorMissingParams = "nodeParameters or sharedParameters or both are missing, and they cannot be empty"
errorMissingNodeParams = "node parameter is required, and cannot be empty"
errFailUpdate = "Failed to update conditons"
errFailUpdate = "Failed to update conditions"

SuccessFAResponse = "Success: Rebooted"
parameterActionName = "--action"
Expand Down Expand Up @@ -126,7 +126,7 @@ func (r *FenceAgentsRemediationReconciler) Reconcile(ctx context.Context, req ct
if !valid {
notFoundErr := fmt.Errorf("didn't find a node matching the CR's name")
if err := utils.UpdateConditions(utils.RemediationFinishedNodeNotFound, far, r.Log); err != nil {
notFoundErr = fmt.Errorf("failed to update conditons for reason %s, and error: %v", utils.RemediationFinishedNodeNotFound, err)
notFoundErr = fmt.Errorf("%w and failed to update conditions for reason %s, and error: %v", notFoundErr, utils.RemediationFinishedNodeNotFound, err)
}
r.Log.Error(notFoundErr, "Error on checking CR's name", "CR's Name", req.Name)
return emptyResult, err
Expand Down

0 comments on commit 3d791ac

Please sign in to comment.