cloudstack 3.0 UI - autoscale - add validation that scale policy duration can not be less than Polling Interval.

This commit is contained in:
Jessica Wang 2012-08-08 14:36:28 -07:00
parent 5a9dbcf187
commit a4ca478df5
1 changed files with 9 additions and 0 deletions

View File

@ -793,6 +793,15 @@
return;
}
}
if(args.data.scaleUpDuration < args.data.interval) {
args.response.error("Duration of Scale Up Policy can not be less than Polling Interval.");
return;
}
if(args.data.scaleDownDuration < args.data.interval) {
args.response.error("Duration of Scale Down Policy can not be less than Polling Interval.");
return;
}
//validation (end) *****
var scaleVmProfileResponse = [];