mirror of https://github.com/apache/cloudstack.git
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
This commit is contained in:
parent
6ae6c2b8b6
commit
3c51c4e7ad
|
|
@ -85,7 +85,11 @@ public class CreateGlobalLoadBalancerRuleCmd extends BaseAsyncCreateCmd {
|
|||
}
|
||||
|
||||
public String getAlgorithm() {
|
||||
return algorithm;
|
||||
if (algorithm != null) {
|
||||
return algorithm;
|
||||
} else {
|
||||
return GlobalLoadBalancerRule.Algorithm.RoundRobin.name();
|
||||
}
|
||||
}
|
||||
|
||||
public String getGslbMethod() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue