From 1725cb4f820e13e481689b2ff16dd82fee9826c4 Mon Sep 17 00:00:00 2001 From: Cristian Magherusan-Stanciu Date: Tue, 5 Sep 2023 11:26:27 +0200 Subject: [PATCH] Fix currentGeneration field --- rds_instance_data.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rds_instance_data.go b/rds_instance_data.go index ac7e131..8369bc5 100644 --- a/rds_instance_data.go +++ b/rds_instance_data.go @@ -110,9 +110,9 @@ func RDSData() (*RDSInstanceData, error) { // Similar to the EC2 instance data code, you can perform sorting and other operations here. - for _, data := range d { - if data.CurrentGenerationRaw == "Yes" { - data.CurrentGeneration = true + for i := range d { + if d[i].CurrentGenerationRaw == "Yes" { + d[i].CurrentGeneration = true } }