Skip to content

Commit

Permalink
both scale up and down steps cannot be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
knguyen100000010 committed Feb 22, 2024
1 parent 6ab857e commit 7769d81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy-board/deploy_board/templates/groups/asg_policy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,11 @@ aria-hidden="true">
var scaleDownSteps = config["scaleDownSteps"].trim();
var scaleDownAdjustments = config["scaleDownAdjustments"].trim();

if (scaleUpSteps.length == 0 && scaleDownSteps.length == 0) {
alert("Both scale up and down steps cannot be empty!")
return false;
}

if (scaleUpSteps.length > 0 && scaleUpAdjustments.length == 0) {
alert("Scale up adjustments must be provided for scale up steps!")
return false;
Expand Down

0 comments on commit 7769d81

Please sign in to comment.