diff --git a/core/src/main/java/hudson/model/Computer.java b/core/src/main/java/hudson/model/Computer.java index 97c924cdc4e5..6df0b65354a1 100644 --- a/core/src/main/java/hudson/model/Computer.java +++ b/core/src/main/java/hudson/model/Computer.java @@ -430,9 +430,9 @@ private static String getOfflineCauseReason(OfflineCause cause, boolean temporar String gsub_base = null; // fetch the localized string for "Disconnected By" if (temporarilyOfflineCause) { - gsub_base = hudson.slaves.Messages.SlaveComputer_DisconnectedBy("", ""); - } else { gsub_base = hudson.slaves.Messages.SlaveComputer_SetTempOfflineBy("", ""); + } else { + gsub_base = hudson.slaves.Messages.SlaveComputer_DisconnectedBy("", ""); } // regex to remove commented reason base string String gsub1 = "^" + gsub_base + "[\\w\\W]* \\: ";