Skip to content

Commit

Permalink
Merge pull request #4789 from guettli/patch-1
Browse files Browse the repository at this point in the history
🌱 Update awsmachinetemplate_webhook.go, fix typo
  • Loading branch information
k8s-ci-robot authored Mar 6, 2024
2 parents 2c600be + 904109f commit f103bff
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 f103bff

Please sign in to comment.