MINOR - Fix collate app yaml reader with unwanted dropwizard java props (#19908)

This commit is contained in:
Pere Miquel Brull 2025-02-21 07:34:07 +01:00 committed by GitHub
parent 3366385e15
commit c207c8d4f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ public class ConfigurationReader {
private final StringSubstitutor substitutor;
private final ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
private final YamlConfigurationFactory<Object> factory =
new YamlConfigurationFactory<>(Object.class, null, mapper, "dw");
new YamlConfigurationFactory<>(Object.class, null, mapper, "app");
public ConfigurationReader(Map<String, String> envMap) {
// envMap is for custom environment variables (e.g., for testing), defaulting to the system