Skip to content

Commit 3c51c4e

Browse files
committed
CLOUDSTACK-2461: createGSLBRule API is failing to pick the default algorithm "round
robin" for parameter "gslblbmethod" fix defaults to round robin when parameter not specified
1 parent 6ae6c2b commit 3c51c4e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

api/src/org/apache/cloudstack/api/command/user/region/ha/gslb/CreateGlobalLoadBalancerRuleCmd.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ public String getDescription() {
8585
}
8686

8787
public String getAlgorithm() {
88-
return algorithm;
88+
if (algorithm != null) {
89+
return algorithm;
90+
} else {
91+
return GlobalLoadBalancerRule.Algorithm.RoundRobin.name();
92+
}
8993
}
9094

9195
public String getGslbMethod() {

0 commit comments

Comments
 (0)