Skip to content

Commit

Permalink
rebase on main
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Borrelli <[email protected]>
  • Loading branch information
stevendborrelli committed Apr 17, 2023
1 parent fa7084f commit b406733
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions internal/service/rds/subnet_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,23 +130,7 @@ func resourceSubnetGroupRead(ctx context.Context, d *schema.ResourceData, meta i
}
d.Set("subnet_ids", subnetIDs)
d.Set("supported_network_types", aws.StringValueSlice(v.SupportedNetworkTypes))

tags, err := ListTags(ctx, conn, arn)

if err != nil {
return sdkdiag.AppendErrorf(diags, "listing tags for RDS DB Subnet Group (%s): %s", arn, err)
}

tags = tags.IgnoreAWS().IgnoreConfig(ignoreTagsConfig)

//lintignore:AWSR002
if err := d.Set("tags", tags.RemoveDefaultConfig(defaultTagsConfig).Map()); err != nil {
return sdkdiag.AppendErrorf(diags, "setting tags: %s", err)
}

if err := d.Set("tags_all", tags.Map()); err != nil {
return sdkdiag.AppendErrorf(diags, "setting tags_all: %s", err)
}
d.Set("vpc_id", v.VpcId)

return diags
}
Expand Down

0 comments on commit b406733

Please sign in to comment.