simplified.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21796 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-09-17 21:29:05 +00:00
1 parent 90f4af64e7
commit a898587cde
1 file changed
+1 -2
+1 -2
View File
@@ -61,7 +61,6 @@ import hudson.model.listeners.SCMListener;
import hudson.remoting.LocalChannel;
import hudson.remoting.VirtualChannel;
import hudson.remoting.Channel;
import hudson.scm.CVSSCM;
import hudson.scm.RepositoryBrowser;
import hudson.scm.SCM;
import hudson.scm.SCMDescriptor;
@@ -1241,7 +1240,7 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
name = "";
for (Computer c : computers.values()) {
if(c.getNode().getNodeName().equals(name))
if(c.getName().equals(name))
return c;
}
return null;