From eaf562899835cc6d98172f989a046559cc8d6dbc Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 22 Aug 2012 15:19:43 -0700 Subject: [PATCH] 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) --- ui/scripts/autoscaler.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index f36ae27715a..7719e22fda9 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -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'),