Skip to content

Commit

Permalink
Update awsmachinetemplate_webhook.go
Browse files Browse the repository at this point in the history
  • Loading branch information
guettli authored Feb 14, 2024
1 parent 50a7f5b commit 904109f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta2/awsmachinetemplate_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (r *AWSMachineTemplateWebhook) ValidateCreate(_ context.Context, raw runtim
var allErrs field.ErrorList
obj, ok := raw.(*AWSMachineTemplate)
if !ok {
return nil, apierrors.NewBadRequest(fmt.Sprintf("expected a VSphereMachineTemplate but got a %T", raw))
return nil, apierrors.NewBadRequest(fmt.Sprintf("expected a AWSMachineTemplate but got a %T", raw))
}

spec := obj.Spec.Template.Spec
Expand Down

0 comments on commit 904109f

Please sign in to comment.