Skip to content

Commit

Permalink
Revert "Replace 'tfslices.Chunks' with 'slices.Chunk' - rds."
Browse files Browse the repository at this point in the history
This reverts commit ed58544.
  • Loading branch information
jar-b committed Sep 10, 2024
1 parent d1b3b11 commit 0c6c637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/rds/cluster_parameter_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func resourceClusterParameterGroupUpdate(ctx context.Context, d *schema.Resource
o, n := d.GetChange(names.AttrParameter)
os, ns := o.(*schema.Set), n.(*schema.Set)

for chunk := range slices.Chunk(expandParameters(ns.Difference(os).List()), maxParamModifyChunk) {
for _, chunk := range tfslices.Chunks(expandParameters(ns.Difference(os).List()), maxParamModifyChunk) {
input := &rds.ModifyDBClusterParameterGroupInput{
DBClusterParameterGroupName: aws.String(d.Id()),
Parameters: chunk,
Expand Down Expand Up @@ -236,7 +236,7 @@ func resourceClusterParameterGroupUpdate(ctx context.Context, d *schema.Resource
}

// Reset parameters that have been removed.
for chunk := range slices.Chunk(maps.Values(toRemove), maxParamModifyChunk) {
for _, chunk := range tfslices.Chunks(maps.Values(toRemove), maxParamModifyChunk) {
input := &rds.ResetDBClusterParameterGroupInput{
DBClusterParameterGroupName: aws.String(d.Id()),
Parameters: chunk,
Expand Down

0 comments on commit 0c6c637

Please sign in to comment.