Skip to content

Commit

Permalink
feat: allow to override ORM connection properties #7816 (#7821)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuriy Movchan <Yuriy.Movchan@gmail.com>
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
yurem authored and devrimyatar committed Feb 27, 2024
1 parent 83d9cb1 commit 3c213a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private void replaceWithUpperCasedSystemValues(PropertiesConfiguration propertie
Iterator<?> keys = propertiesConfiguration.getKeys();
while (keys.hasNext()) {
String key = (String) keys.next();
String envKey = key.toUpperCase().replaceAll(".", "_").replaceAll("-", "_");
String envKey = key.toUpperCase().replaceAll("\\.", "\\_").replaceAll("\\-", "\\_");
if (System.getenv(envKey) != null) {
propertiesConfiguration.setProperty(key, System.getenv(envKey));
}
Expand Down

0 comments on commit 3c213a7

Please sign in to comment.