Skip to content

Commit 6bbfa37

Browse files
committed
Merge branch 'backport-loghome-mountpath-check' into 'release/4.2'
Correct logic where one of the mountPath is exactly the same as logHomePath See merge request weblogic-cloud/weblogic-kubernetes-operator!4727
2 parents c49a067 + edac29c commit 6bbfa37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ private void addUnmappedLogHome() {
14481448
}
14491449

14501450
private boolean mapsLogHome(String mountPath) {
1451-
return getLogHome().startsWith(separatorTerminated(mountPath));
1451+
return separatorTerminated(getLogHome()).startsWith(separatorTerminated(mountPath));
14521452
}
14531453

14541454
private String separatorTerminated(String path) {

0 commit comments

Comments
 (0)