Skip to content

Commit

Permalink
wafv2: omit id from error if FlattenResourceId fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-b committed Sep 25, 2024
1 parent 4dcade9 commit 2ead23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/wafv2/web_acl_association.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func resourceWebACLAssociationCreate(ctx context.Context, d *schema.ResourceData
resourceARN := d.Get(names.AttrResourceARN).(string)
id, err := flex.FlattenResourceId([]string{webACLARN, resourceARN}, webACLAssociationResourceIDPartCount, true)
if err != nil {
return sdkdiag.AppendErrorf(diags, "creating WAFv2 WebACL Association (%s): %s", id, err)
return sdkdiag.AppendFromErr(diags, err)
}

input := &wafv2.AssociateWebACLInput{
Expand Down

0 comments on commit 2ead23c

Please sign in to comment.