Skip to content

Commit

Permalink
Merge pull request #1891 from stephenc/jenkins-31219
Browse files Browse the repository at this point in the history
[FIXED JENKINS-31219] A CloudProvisioningListener can prevent provisi…
  • Loading branch information
stephenc committed Dec 15, 2015
2 parents 8c8bbbb + cc932c4 commit 9339a34
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/src/main/java/hudson/slaves/NodeProvisioner.java
Expand Up @@ -690,11 +690,10 @@ we take the current snapshot value, and we take the current exponential moving a

int workloadToProvision = (int) Math.round(Math.floor(excessWorkload + m));

for (CloudProvisioningListener cl : CloudProvisioningListener.all())
// consider displaying reasons in a future cloud ux
{
for (CloudProvisioningListener cl : CloudProvisioningListener.all()) {
if (cl.canProvision(c, state.getLabel(), workloadToProvision) != null) {
break CLOUD;
// consider displaying reasons in a future cloud ux
continue CLOUD;
}
}

Expand Down

0 comments on commit 9339a34

Please sign in to comment.