Skip to content

Commit

Permalink
CLOUDSTACK-4714: EIP/ELB Basic Zone > EIP/ELB Basic Zone > Network pa…
Browse files Browse the repository at this point in the history
…ge > Add Load Balancer tab > add AutoScale rule > spinning wheel is hanging forever with JS error "args.context.ipAddresses is undefined".

(cherry picked from commit 24e898b)

Signed-off-by: animesh <[email protected]>
  • Loading branch information
Jessica Wang authored and chaturvedia committed Sep 20, 2013
1 parent 55de625 commit c69b19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/scripts/autoscaler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c69b19d

Please sign in to comment.