Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/aws_elasticache_replication_group: fix crash setting `replicas_per_…
…node_group` (#38797) In cases where the `NodeGroups` list in the read ouput is empty, the provider would crash attempting to read the `NodeGroupMembers` count from the first item in the list. ```console % make testacc PKG=elasticache TESTS="TestAccElastiCacheReplicationGroup_basic|TestAccElastiCacheReplicationGroup_ClusterMode_basic" make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.22.6 test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheReplicationGroup_basic|TestAccElastiCacheReplicationGroup_ClusterMode_basic' -timeout 360m --- PASS: TestAccElastiCacheReplicationGroup_basic_v5 (775.08s) --- PASS: TestAccElastiCacheReplicationGroup_basic (775.23s) --- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_basic (915.76s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/elasticache 921.685s ```
- Loading branch information