Skip to content

Commit 904109f

Browse files
authored
Update awsmachinetemplate_webhook.go
1 parent 50a7f5b commit 904109f

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)