diff --git a/core/src/main/java/hudson/model/Slave.java b/core/src/main/java/hudson/model/Slave.java index b863680ab6eaf5a3fa489fc73e1d6b4659975d28..6deeb8b381a089b83ad93babc6e02a2a27024629 100644 --- a/core/src/main/java/hudson/model/Slave.java +++ b/core/src/main/java/hudson/model/Slave.java @@ -68,8 +68,11 @@ public final class Slave implements Node { if (name.equals("")) throw new FormException("Invalid slave configuration. Name is empty", null); - if (!localFS.exists()) - throw new FormException("Invalid slave configuration for " + name + ". No such directory exists: " + localFS, null); + // this prevents the config from being saved when slaves are offline. + // on a large deployment with a lot of slaves, some slaves are bound to be offline, + // so this check is harmful. + //if (!localFS.exists()) + // throw new FormException("Invalid slave configuration for " + name + ". No such directory exists: " + localFS, null); if (remoteFS.equals("")) throw new FormException("Invalid slave configuration for " + name + ". No remote directory given", null); }