Skip to content

Commit

Permalink
fix(aws): lbv2 listener rule priorty should be a string (#3803)
Browse files Browse the repository at this point in the history
  • Loading branch information
asher committed Jun 19, 2019
1 parent 6364762 commit 28757ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,15 @@ public void setValues(List<String> values) {
}

public static class Rule {
private Integer priority;
private String priority;
private List<Action> actions;
private List<RuleCondition> conditions;

public Integer getPriority() {
public String getPriority() {
return priority;
}

public void setPriority(Integer priority) {
public void setPriority(String priority) {
this.priority = priority;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class LoadBalancerV2UpsertHandler {
new RuleCondition().withField(condition.field).withValues(condition.values)
}

rules.add(new Rule().withActions(actions).withConditions(conditions).withPriority(Integer.toString(rule.priority)))
rules.add(new Rule().withActions(actions).withConditions(conditions).withPriority(rule.priority))
}
listenerToRules.put(listener, rules)
}
Expand Down

0 comments on commit 28757ad

Please sign in to comment.