Skip to content

Commit

Permalink
fix user info removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 committed May 13, 2024
1 parent 02a0eff commit a507e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/Computer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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]* \\: ";
Expand Down

0 comments on commit a507e2e

Please sign in to comment.