Skip to content

Commit

Permalink
fix(L4 caching): Ignore 'targetInstances' in regional forwarding rule…
Browse files Browse the repository at this point in the history
…s. (#1575)
  • Loading branch information
jtk54 committed Apr 14, 2017
1 parent 9c0dcf2 commit c611b6e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -197,7 +197,8 @@ class GoogleLoadBalancerCachingAgent extends AbstractGoogleCachingAgent implemen

def forwardingRuleTokens = forwardingRule.target.split("/")

if (forwardingRuleTokens[forwardingRuleTokens.size() - 2] != "targetVpnGateways") {
if (forwardingRuleTokens[forwardingRuleTokens.size() - 2] != "targetVpnGateways"
&& forwardingRuleTokens[forwardingRuleTokens.size() - 2] != "targetInstances") {
def targetPoolName = Utils.getLocalName(forwardingRule.target)
def targetPoolsCallback = new TargetPoolCallback(googleLoadBalancer: newLoadBalancer,
httpHealthChecksRequest: httpHealthChecksRequest,
Expand Down

0 comments on commit c611b6e

Please sign in to comment.