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:
Murali Reddy 2013-05-16 12:26:23 +05:30
parent 6ae6c2b8b6
commit 3c51c4e7ad
1 changed files with 5 additions and 1 deletions

View File

@ -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() {