Skip to content

Commit

Permalink
JENKINS-34667 Provision attempt is made when possible slaves count is 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Upton IV committed May 9, 2016
1 parent bb6500a commit 1b9188f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/EC2Cloud.java
Expand Up @@ -490,7 +490,7 @@ private synchronized EC2AbstractSlave provisionSlaveIfPossible(SlaveTemplate tem
* allocated, we don't look at that instance as available for provisioning.
*/
int possibleSlavesCount = getPossibleNewSlavesCount(template);
if (possibleSlavesCount < 0) {
if (possibleSlavesCount <= 0) {
LOGGER.log(Level.INFO, "Cannot provision - no capacity for instances: " + possibleSlavesCount);
return null;
}
Expand Down

0 comments on commit 1b9188f

Please sign in to comment.