Skip to content

Commit

Permalink
fix(provider/aws): Fix groovyism in call to elbv2 region scoped provi…
Browse files Browse the repository at this point in the history
…der call (spinnaker#2391)
  • Loading branch information
robzienert authored Feb 23, 2018
1 parent c7eb87c commit 188434e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class CopyLastAsgAtomicOperation implements AtomicOperation<DeploymentResult> {
newDescription.loadBalancers = description.loadBalancers != null ? description.loadBalancers : ancestorAsg.loadBalancerNames
newDescription.targetGroups = description.targetGroups
if (newDescription.targetGroups == null && ancestorAsg.targetGroupARNs && ancestorAsg.targetGroupARNs.size() > 0) {
def targetGroups = sourceRegionScopedProvider.amazonElasticLoadBalancingV2.describeTargetGroups(new DescribeTargetGroupsRequest().withTargetGroupArns(ancestorAsg.targetGroupARNs)).targetGroups
def targetGroups = sourceRegionScopedProvider.getAmazonElasticLoadBalancingV2(true).describeTargetGroups(new DescribeTargetGroupsRequest().withTargetGroupArns(ancestorAsg.targetGroupARNs)).targetGroups
def targetGroupNames = targetGroups.collect { it.targetGroupName }
newDescription.targetGroups = targetGroupNames
}
Expand Down

0 comments on commit 188434e

Please sign in to comment.