mirror of https://github.com/apache/cloudstack.git
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:
parent
8f358fb214
commit
eaf5628998
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue