mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - autoscale - add validation that scale policy duration can not be less than Polling Interval.
This commit is contained in:
parent
5a9dbcf187
commit
a4ca478df5
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue