Skip to content

Commit

Permalink
Fix interpolation of environment variables in config properties (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jul 3, 2023
1 parent bf981d6 commit c752478
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ private static Properties loadProperties(Path path) {
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);
Expand Down

0 comments on commit c752478

Please sign in to comment.