Skip to content

Commit

Permalink
Fix currentGeneration field
Browse files Browse the repository at this point in the history
  • Loading branch information
cristim committed Sep 5, 2023
1 parent 7e56245 commit 1725cb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rds_instance_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 1725cb4

Please sign in to comment.