From bf9c475fe6b559e7088946153052870d57a5c668 Mon Sep 17 00:00:00 2001 From: mindless Date: Wed, 9 Sep 2009 19:04:17 +0000 Subject: [PATCH] [FIXED HUDSON-4405] trim remoteFS value to avoid hard-to-notice error git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21557 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Slave.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/hudson/model/Slave.java b/core/src/main/java/hudson/model/Slave.java index 4edec605c2..4cb213dda3 100644 --- a/core/src/main/java/hudson/model/Slave.java +++ b/core/src/main/java/hudson/model/Slave.java @@ -142,7 +142,7 @@ public abstract class Slave extends Node implements Serializable { this.description = nodeDescription; this.numExecutors = numExecutors; this.mode = mode; - this.remoteFS = remoteFS; + this.remoteFS = Util.fixNull(remoteFS).trim(); this.label = Util.fixNull(labelString).trim(); this.launcher = launcher; this.retentionStrategy = retentionStrategy; @@ -367,7 +367,7 @@ public abstract class Slave extends Node implements Serializable { if(value.startsWith("\\\\") || value.startsWith("/net/")) return FormValidation.warning("Are you sure you want to use network mounted file system for FS root? " + - "Note that this directory needs not be visible to the master."); + "Note that this directory does not need to be visible to the master."); return FormValidation.ok(); } @@ -375,7 +375,7 @@ public abstract class Slave extends Node implements Serializable { // -// backwrad compatibility +// backward compatibility // /** * In Hudson < 1.69 this was used to store the local file path -- GitLab