From 3d791ac65900650422ae4b52f6e45e6f430055e2 Mon Sep 17 00:00:00 2001 From: oraz Date: Wed, 3 Jan 2024 15:37:42 +0200 Subject: [PATCH] Fix typo s/conditons/conditions --- controllers/fenceagentsremediation_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/fenceagentsremediation_controller.go b/controllers/fenceagentsremediation_controller.go index b98f92f9..273d5b3c 100644 --- a/controllers/fenceagentsremediation_controller.go +++ b/controllers/fenceagentsremediation_controller.go @@ -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" @@ -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