Skip to content

Commit 5b0130c

Browse files
authored
Merge pull request #5743 from AndiDog/fix-format-strings
Fix format strings
2 parents f2226d1 + 0b849eb commit 5b0130c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/azurecluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func (acr *AzureClusterReconciler) reconcileDelete(ctx context.Context, clusterS
319319

320320
wrappedErr := errors.Wrapf(err, "error deleting AzureCluster %s/%s", azureCluster.Namespace, azureCluster.Name)
321321
acr.Recorder.Eventf(azureCluster, corev1.EventTypeWarning, "ClusterReconcilerDeleteFailed", wrappedErr.Error())
322-
conditions.MarkFalse(azureCluster, infrav1.NetworkInfrastructureReadyCondition, clusterv1.DeletionFailedReason, clusterv1.ConditionSeverityWarning, err.Error())
322+
conditions.MarkFalse(azureCluster, infrav1.NetworkInfrastructureReadyCondition, clusterv1.DeletionFailedReason, clusterv1.ConditionSeverityWarning, "%s", err.Error())
323323
return reconcile.Result{}, wrappedErr
324324
}
325325

controllers/azuremanagedmachinepool_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (ammpr *AzureManagedMachinePoolReconciler) reconcileNormal(ctx context.Cont
270270
// Ensure the ready condition is false, but do not overwrite an existing
271271
// error condition which might provide more details.
272272
if conditions.IsTrue(scope.InfraMachinePool, infrav1.AgentPoolsReadyCondition) {
273-
conditions.MarkFalse(scope.InfraMachinePool, infrav1.AgentPoolsReadyCondition, infrav1.FailedReason, clusterv1.ConditionSeverityError, err.Error())
273+
conditions.MarkFalse(scope.InfraMachinePool, infrav1.AgentPoolsReadyCondition, infrav1.FailedReason, clusterv1.ConditionSeverityError, "%s", err.Error())
274274
}
275275

276276
// Handle transient and terminal errors

0 commit comments

Comments
 (0)