From 329b3edff4a56c49083b6c12f5bc523f09d3ac4c Mon Sep 17 00:00:00 2001 From: Jose Armesto Date: Wed, 23 Feb 2022 21:29:03 +0100 Subject: [PATCH] Update api/v1beta1/azuremachinetemplate_webhook.go Co-authored-by: Cecile Robert-Michon --- api/v1beta1/azuremachinetemplate_webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1beta1/azuremachinetemplate_webhook.go b/api/v1beta1/azuremachinetemplate_webhook.go index 5fbc1e2eff9..c6a2065af04 100644 --- a/api/v1beta1/azuremachinetemplate_webhook.go +++ b/api/v1beta1/azuremachinetemplate_webhook.go @@ -93,7 +93,7 @@ func (r *AzureMachineTemplate) ValidateDelete() error { // Default implements webhookutil.defaulter so a webhook will be registered for the type. func (r *AzureMachineTemplate) Default() { if err := r.Spec.Template.Spec.SetDefaultSSHPublicKey(); err != nil { - ctrl.Log.WithName("SetDefault").Error(err, "SetDefaultSshPublicKey failed") + ctrl.Log.WithName("SetDefault").Error(err, "SetDefaultSSHPublicKey failed") } r.Spec.Template.Spec.SetDefaultCachingType() r.Spec.Template.Spec.SetDataDisksDefaults()