Skip to content

Commit dfb2e1d

Browse files
author
Jessica Wang
committed
CLOUDSTACK-3255: UI > VPC section - IP Address - Load Balancing - autoscale - fix a bug that failed to get zoneid for createAutoScaleVmProfile API.
1 parent 7892258 commit dfb2e1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/scripts/autoscaler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@
10691069
var apiCmd, apiCmdRes;
10701070
if(!('multiRules' in args.context)) { //from a new LB
10711071
var data = {
1072-
zoneid: args.context.networks[0].zoneid,
1072+
zoneid: args.context.ipAddresses[0].zoneid, //args.context.networks[0] doesn't have zoneid property, so use args.context.ipAddresses[0] instead
10731073
serviceofferingid: args.data.serviceOfferingId,
10741074
templateid: args.data.templateNames,
10751075
destroyvmgraceperiod: args.data.destroyVMgracePeriod,

0 commit comments

Comments
 (0)