Skip to content

Commit 8e77815

Browse files
CLOUDSTACK-9229: Autoscale policy creation failing in VPC due to zoneid missing in createAutoScaleVmProfile
Added a conditon to check whether the zoneid in networks is undefined, If that is undefined, it gets the zoneid from ipaddresses argument. Fixed a localization issue.
1 parent 80703ca commit 8e77815

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ui/scripts/autoscaler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@
11161116
var apiCmd, apiCmdRes;
11171117
if (!('multiRules' in args.context)) { //from a new LB
11181118
var data = {
1119-
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
1119+
zoneid: args.context.networks[0].zoneid ? args.context.networks[0].zoneid : args.context.ipAddresses[0].zoneid, //get zoneid from args.context.networks[0]. If it is not null then get it from args.context.ipAddresses[0] because args.context.ipAddresses is null when adding AutoScale rule from Add Load Balancer tab in Network page
11201120
serviceofferingid: args.data.serviceOfferingId,
11211121
templateid: args.data.templateNames,
11221122
destroyvmgraceperiod: args.data.destroyVMgracePeriod,

ui/scripts/ui-custom/autoscaler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333

334334
var $loading = $('<div>').addClass('loading-overlay').appendTo($autoscalerDialog);
335335
$autoscalerDialog.dialog({
336-
title: 'label.autoscale.configuration.wizard',
336+
title: _l('label.autoscale.configuration.wizard'),
337337
width: 825,
338338
height: 600,
339339
draggable: true,

0 commit comments

Comments
 (0)