Merge pull request #977 from stefansielaff/fix-behavior-of-envsvaluesubstitutor

WW-5437 Swap order of sysStrSubstitutor and envStrSubstitutor in substitute method
This commit is contained in:
Lukasz Lenart
2024-07-05 06:52:12 +02:00
committed by GitHub
@@ -46,7 +46,7 @@ public class EnvsValueSubstitutor implements ValueSubstitutor {
public String substitute(String value) {
LOG.debug("Substituting value {} with proper System variable or environment variable", value);
String substituted = sysStrSubstitutor.replace(value);
return envStrSubstitutor.replace(substituted);
String substituted = envStrSubstitutor.replace(value);
return sysStrSubstitutor.replace(substituted);
}
}