Skip to content
Permalink
Browse files

JENKINS-34667 Provision attempt is made when possible slaves count is…

… 0. (back out change)
  • Loading branch information...
Francis Upton IV
Francis Upton IV committed May 10, 2016
1 parent 7a11482 commit f45093e4567290112ca4302e03acacacb50bbc5d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/ec2/EC2Cloud.java
@@ -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;
}

0 comments on commit f45093e

Please sign in to comment.
You can’t perform that action at this time.