mirror of https://github.com/kubernetes/kops.git
Fixing NP panic
This commit is contained in:
parent
729598a4ae
commit
95a8c59fbf
|
|
@ -145,6 +145,9 @@ func (e *SecurityGroupRule) matches(rule *ec2.IpPermission) bool {
|
|||
// TODO: Only if len 1?
|
||||
match := false
|
||||
for _, spec := range rule.UserIdGroupPairs {
|
||||
if *e.SourceGroup == nil {
|
||||
continue
|
||||
}
|
||||
if aws.StringValue(spec.GroupId) == *e.SourceGroup.ID {
|
||||
match = true
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in New Issue