提交 cc932c49 编写于 作者: S Stephen Connolly

[FIXED JENKINS-31219] A CloudProvisioningListener can prevent provisioning of...

[FIXED JENKINS-31219] A CloudProvisioningListener can prevent provisioning of all clouds instead of just the targeted cloud
上级 b21c33fb
......@@ -690,11 +690,10 @@ public class NodeProvisioner {
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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册