Fix interpolation of environment variables in config properties (fixes #693) (#866)

This commit is contained in:
Guillaume Nodet
2023-07-03 17:36:32 +02:00
committed by GitHub
parent 838b720342
commit c4aaed6909

View File

@@ -490,7 +490,7 @@ public class DaemonParameters {
result.load(in);
Properties sysProps = new Properties();
sysProps.putAll(System.getProperties());
System.getenv().forEach((k, v) -> sysProps.put(k, ENV_PREFIX + v));
System.getenv().forEach((k, v) -> sysProps.put(ENV_PREFIX + k, v));
InterpolationHelper.performSubstitution(result, sysProps::getProperty, true, true);
} catch (IOException e) {
throw new RuntimeException("Could not read " + path);