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 } }