Skip to content

Commit 165f7b4

Browse files
authored
Update password logging replacement in ProcessRunner
1 parent ee9306a commit 165f7b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/main/java/org/apache/cloudstack/utils/process/ProcessRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ String removeCommandSensitiveInfoForLogging(String command) {
6767
public ProcessRunner(ExecutorService executor) {
6868
this.executor = executor;
6969
commandLogReplacements.add(new Ternary<>("ipmitool", "-P\\s+\\S+", "-P *****"));
70-
commandLogReplacements.add(new Ternary<>("ipmitool", "(?i)(password)(\\s+)\\S+(\\s+)\\S+", "$1****$2****"));
70+
commandLogReplacements.add(new Ternary<>("ipmitool", "(?i)(password)(\\s+)\\S+(\\s+)\\S+", "$1 ****$2****"));
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)