Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-31219] A CloudProvisioningListener can prevent provisi…
…oning of all clouds instead of just the targeted cloud

(cherry picked from commit cc932c4)
  • Loading branch information
stephenc authored and olivergondza committed Feb 3, 2016
1 parent df2b7d9 commit de9835a
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 de9835a

Please sign in to comment.