Skip to content

Commit

Permalink
Update api/v1beta1/azuremachinetemplate_webhook.go
Browse files Browse the repository at this point in the history
Co-authored-by: Cecile Robert-Michon <[email protected]>
  • Loading branch information
fiunchinho and Cecile Robert-Michon authored Feb 23, 2022
1 parent bcfbde4 commit 329b3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/azuremachinetemplate_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 329b3ed

Please sign in to comment.