Skip to content

Commit 7f2ab63

Browse files
lb: fix haproxy cannot start if algorithm is not lowercase (#9698)
1 parent 50d7ebf commit 7f2ab63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

490490
int i = 0;

0 commit comments

Comments
 (0)