Skip to content

Commit

Permalink
fix(core): Avoid capturing security group ingress rules with empty ci…
Browse files Browse the repository at this point in the history
…dr's. (#1206)
  • Loading branch information
Matt Duftler committed Mar 6, 2017
1 parent 10c2b89 commit 4b80f7a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -67,7 +67,7 @@ class GoogleSecurityGroupUpserter implements SecurityGroupUpserter, CloudProvide

// What is currently cached?
Set<String> existingSourceRanges = existingSecurityGroup.inboundRules.findResults { inboundRule ->
inboundRule.range ? inboundRule.range.ip + inboundRule.range.cidr : null
inboundRule.range?.ip ? inboundRule.range.ip + inboundRule.range.cidr : null
}.unique() as Set

boolean rangesMatch = existingSourceRanges == targetSecurityGroupSourceRanges
Expand Down

0 comments on commit 4b80f7a

Please sign in to comment.