Skip to content

Commit

Permalink
Allow 0 in form validation for minimumNoInstances (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhakansson authored and Raihaan Shouhell committed Sep 30, 2019
1 parent 1da880d commit 704dbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/SlaveTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ public FormValidation doCheckMinimumNumberOfInstances(@QueryParameter String val
return FormValidation.ok();
try {
int val = Integer.parseInt(value);
if (val > 0) {
if (val >= 0) {
int instanceCap;
try {
instanceCap = Integer.parseInt(instanceCapStr);
Expand Down

0 comments on commit 704dbb9

Please sign in to comment.