Skip to content

Commit 56bf212

Browse files
committed
Add support for Security Group Adoption by fixing GroupName to Name assignment in sdkFind
1 parent dc920e9 commit 56bf212

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/hooks/security_group/sdk_read_many_post_set_output.go.tpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
if found {
2+
3+
// Needed because SecurityGroups Name are held in GroupName property of the AWS resource
4+
ko.Spec.Name = resp.SecurityGroups[0].GroupName
5+
26
rm.addRulesToSpec(ko, resp.SecurityGroups[0])
37
48
// A ReadOne call for SecurityGroup Rules (NOT SecurityGroups)
@@ -8,4 +12,4 @@
812
} else {
913
ko.Status.Rules = rules
1014
}
11-
}
15+
}

0 commit comments

Comments
 (0)