Skip to content

Commit a21605b

Browse files
Fix reconciliation comparisons when there are no NSGs (#329)
* Fix reconciliation comparisons when there are no NSGs
1 parent 50d8a0c commit a21605b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ security features are welcome on GitHub Issues.
2121

2222
Security updates will be released on a regular cadence. Many of our projects
2323
will typically release security fixes in conjunction with the
24-
[Oracle Critical Patch Update][3] program. Additional
24+
Oracle Critical Patch Update program. Additional
2525
information, including past advisories, is available on our [security alerts][4]
2626
page.
2727

cloud/scope/util.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ const (
2626

2727
// GetNsgNamesFromId returns the names of the NSGs with the provided IDs
2828
func GetNsgNamesFromId(ids []string, nsgs []*infrastructurev1beta2.NSG) []string {
29+
if len(ids) == 0 {
30+
return nil
31+
}
2932
names := make([]string, 0)
3033
for _, id := range ids {
3134
for _, nsg := range nsgs {

0 commit comments

Comments
 (0)