Skip to content

Commit 9e0a3f5

Browse files
weizhouapachedhslove
authored andcommitted
lb: fix haproxy cannot start if algorithm is not lowercase (apache#9698)
1 parent 1c01321 commit 9e0a3f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/com/cloud/network/HAProxyConfigurator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private List<String> getRulesForPool(final LoadBalancerTO lbTO, final boolean ke
485485
sb.append("\tbind ").append(publicIP).append(":").append(publicPort);
486486
result.add(sb.toString());
487487
sb = new StringBuilder();
488-
sb.append("\t").append("balance ").append(algorithm);
488+
sb.append("\t").append("balance ").append(algorithm.toLowerCase());
489489
result.add(sb.toString());
490490

491491
int i = 0;

0 commit comments

Comments
 (0)