Skip to content

Commit

Permalink
Merge pull request quarkusio#35210 from radcortez/env-recording
Browse files Browse the repository at this point in the history
Removed dotted versions of environment variables from recording
  • Loading branch information
radcortez authored Aug 7, 2023
2 parents 0ae1395 + b19d4f1 commit ec40da4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
import io.smallrye.config.SmallRyeConfig;
import io.smallrye.config.SmallRyeConfigBuilder;
import io.smallrye.config.SysPropConfigSource;
import io.smallrye.config.common.utils.StringUtil;

/**
* A configuration reader.
Expand Down Expand Up @@ -1017,6 +1018,9 @@ private Set<String> getAllProperties(final Set<String> registeredRoots) {
properties.add(property);
} else {
properties.remove(property);
if (configSource instanceof EnvConfigSource) {
properties.remove(StringUtil.toLowerCaseAndDotted(property));
}
}
}
} else {
Expand Down

0 comments on commit ec40da4

Please sign in to comment.