fixed a bug introduced when Node is abstracted to Label.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3524 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-06-23 18:18:17 +00:00
1 parent a537e6aad0
commit 3f7e266dec
1 file changed
+1 -2
@@ -575,9 +575,8 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
canRoam = false;
assignedNode = req.getParameter("slave");
if(assignedNode !=null) {
if(Hudson.getInstance().getLabel(assignedNode)==null) {
if(Hudson.getInstance().getLabel(assignedNode).isEmpty())
assignedNode = null; // no such label
}
}
} else {
canRoam = true;