Updated Branches: refs/heads/4.2 55de62517 -> c69b19d67
CLOUDSTACK-4714: EIP/ELB Basic Zone > EIP/ELB Basic Zone > Network page > Add Load Balancer tab > add AutoScale rule > spinning wheel is hanging forever with JS error "args.context.ipAddresses is undefined". (cherry picked from commit 24e898b4cddf1a8ebc3b4886526d94921ade869b) Signed-off-by: animesh <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c69b19d6 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c69b19d6 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c69b19d6 Branch: refs/heads/4.2 Commit: c69b19d679061fbb4e3a017b75bc60055854a7e8 Parents: 55de625 Author: Jessica Wang <[email protected]> Authored: Thu Sep 19 17:10:43 2013 -0700 Committer: animesh <[email protected]> Committed: Fri Sep 20 11:19:35 2013 -0700 ---------------------------------------------------------------------- ui/scripts/autoscaler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c69b19d6/ui/scripts/autoscaler.js ---------------------------------------------------------------------- diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 6fabf68..ab1b459 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -1116,7 +1116,7 @@ var apiCmd, apiCmdRes; if (!('multiRules' in args.context)) { //from a new LB var data = { - zoneid: args.context.ipAddresses[0].zoneid, //args.context.networks[0] doesn't have zoneid property, so use args.context.ipAddresses[0] instead + zoneid: args.context.networks[0].zoneid, //get zoneid from args.context.networks[0] instead of args.context.ipAddresses[0] because args.context.ipAddresses is null when adding AutoScale rule from Add Load Balancer tab in Network page serviceofferingid: args.data.serviceOfferingId, templateid: args.data.templateNames, destroyvmgraceperiod: args.data.destroyVMgracePeriod,
