Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 9fc98b3

Browse files
author
Charel Baum
committed
fix(dbinstance): correct return values
Signed-off-by: Charel Baum <charel.baum@accenture.com>
1 parent 226faec commit 9fc98b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/rds/dbinstance/setup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,13 @@ func areVPCSecurityGroupIDsUpToDate(cr *svcapitypes.DBInstance, out *svcsdk.DBIn
484484
// if user is fine with default SG or lets DBCluster manage it
485485
// (removing all SGs is not possible, AWS will keep last set SGs)
486486
if len(desiredIDs) == 0 {
487-
return false
487+
return true
488488
}
489489

490490
actualGroups := out.VpcSecurityGroups
491491

492492
if len(desiredIDs) != len(actualGroups) {
493-
return true
493+
return false
494494
}
495495

496496
actualIDs := make([]string, 0, len(actualGroups))

0 commit comments

Comments
 (0)