Skip to content

Commit

Permalink
After JENKINS-26391 we need to compare labels based on matching names…
Browse files Browse the repository at this point in the history
… not instance identity
  • Loading branch information
stephenc committed Mar 27, 2015
1 parent 384e025 commit 98605d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/hudson/model/Label.java
Expand Up @@ -116,7 +116,8 @@ protected Set<Node> getNodes() {

@Override
protected boolean matches(SubTask item) {
return item.getAssignedLabel() == Label.this;
final Label l = item.getAssignedLabel();
return l != null && Label.this.matches(l.name);
}
};
this.nodeProvisioner = new NodeProvisioner(this, loadStatistics);
Expand Down

0 comments on commit 98605d0

Please sign in to comment.