Skip to content

Commit f103bff

Browse files
authored
Merge pull request #4789 from guettli/patch-1
🌱 Update awsmachinetemplate_webhook.go, fix typo
2 parents 2c600be + 904109f commit f103bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1beta2/awsmachinetemplate_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (r *AWSMachineTemplateWebhook) ValidateCreate(_ context.Context, raw runtim
180180
var allErrs field.ErrorList
181181
obj, ok := raw.(*AWSMachineTemplate)
182182
if !ok {
183-
return nil, apierrors.NewBadRequest(fmt.Sprintf("expected a VSphereMachineTemplate but got a %T", raw))
183+
return nil, apierrors.NewBadRequest(fmt.Sprintf("expected a AWSMachineTemplate but got a %T", raw))
184184
}
185185

186186
spec := obj.Spec.Template.Spec

0 commit comments

Comments
 (0)