Skip to content

Commit

Permalink
fix(amazon): Fix SpEL support for load balancers (#7151)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmquach committed Jun 26, 2019
1 parent d6ad8c2 commit 8ee7e11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,10 @@ export class AwsServerGroupConfigurationService {
const vpcLoadBalancers = this.getVpcLoadBalancerNames(command);
const allTargetGroups = this.getTargetGroupNames(command);

if (currentLoadBalancers && command.loadBalancers && !currentLoadBalancers.includes('${')) {
if (currentLoadBalancers && command.loadBalancers) {
const allValidLoadBalancers = command.vpcId ? newLoadBalancers : newLoadBalancers.concat(vpcLoadBalancers);
const { valid, invalid, spel } = this.getValidMatches(allValidLoadBalancers, currentLoadBalancers);
command.loadBalancers = intersection(newLoadBalancers, valid);
command.loadBalancers = intersection(newLoadBalancers.concat(spel), valid);
if (!command.vpcId) {
command.vpcLoadBalancers = intersection(vpcLoadBalancers, valid);
} else {
Expand Down

0 comments on commit 8ee7e11

Please sign in to comment.