Skip to content

Commit

Permalink
Removed dotted versions of environment variables from recording
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Aug 4, 2023
1 parent 6e65c47 commit b19d4f1
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 b19d4f1

Please sign in to comment.