From 0c6c6379093307002b662b2aa508db46894b3344 Mon Sep 17 00:00:00 2001 From: Jared Baker Date: Tue, 10 Sep 2024 11:25:59 -0400 Subject: [PATCH] Revert "Replace 'tfslices.Chunks' with 'slices.Chunk' - rds." This reverts commit ed58544991f7499e6aeec7721248693cd5047a55. --- internal/service/rds/cluster_parameter_group.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/rds/cluster_parameter_group.go b/internal/service/rds/cluster_parameter_group.go index 28a4a0c6ae0..ccfdc6bfcdc 100644 --- a/internal/service/rds/cluster_parameter_group.go +++ b/internal/service/rds/cluster_parameter_group.go @@ -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, @@ -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,