CS-16134: cloudstack 3.0 UI - autoscale - basic zone of elastic IP - Add Load Balancer tab - pass domainid and account to createLoadBalancerRule API since IP Address is not available. (Reviewed-by: Brian)

This commit is contained in:
Jessica Wang 2012-08-22 15:19:43 -07:00
parent 8f358fb214
commit eaf5628998
1 changed files with 11 additions and 2 deletions

View File

@ -1243,8 +1243,17 @@
openfirewall: false,
networkid: networkid
};
if(args.context.ipAddresses != undefined)
data = $.extend(data, {publicipid: args.context.ipAddresses[0].id});
if(args.context.ipAddresses != null) {
data = $.extend(data, {
publicipid: args.context.ipAddresses[0].id
});
}
else {
data = $.extend(data, {
domainid: g_domainid,
account: g_account
});
}
$.ajax({
url: createURL('createLoadBalancerRule'),