Skip to content

Commit 3d754ed

Browse files
Jessica Wangvijayvenkat
authored andcommitted
cloudstack 3.0 UI - autoscale - add validation that scale policy duration can not be less than Polling Interval.
1 parent 28513fa commit 3d754ed

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ui/scripts/autoscaler.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,15 @@
798798
return;
799799
}
800800
}
801+
802+
if(args.data.scaleUpDuration < args.data.interval) {
803+
args.response.error("Duration of Scale Up Policy can not be less than Polling Interval.");
804+
return;
805+
}
806+
if(args.data.scaleDownDuration < args.data.interval) {
807+
args.response.error("Duration of Scale Down Policy can not be less than Polling Interval.");
808+
return;
809+
}
801810
//validation (end) *****
802811

803812
var scaleVmProfileResponse = [];

0 commit comments

Comments
 (0)