From f9580e26395fc4b92d72b81d7eb5c6f10e3fc784 Mon Sep 17 00:00:00 2001 From: Yann Tavernier Date: Thu, 16 Feb 2023 10:49:45 +0100 Subject: [PATCH] fix(api): load the right property source for /configuration --- .../http/configuration/ConfigurationEndpoint.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java b/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java index ea42799dc..ca50b33a4 100644 --- a/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java +++ b/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java @@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.AbstractEnvironment; -import org.springframework.core.env.PropertiesPropertySource; +import org.springframework.core.env.EnumerablePropertySource; /** * @author David BRASSELY (david.brassely at graviteesource.com) @@ -48,7 +48,7 @@ public class ConfigurationEndpoint implements ManagementEndpoint { private static final String ENDPOINT_PATH = "/configuration"; - private static final String PROPERTY_SOURCE_CONFIGURATION = "graviteeConfiguration"; + private static final String PROPERTY_SOURCE_CONFIGURATION = "graviteeYamlConfiguration"; @Autowired private AbstractEnvironment environment; @@ -71,7 +71,7 @@ public void handle(RoutingContext ctx) { response.setChunked(true); // Configuration is coming from gravitee.yml - PropertiesPropertySource nodeConfiguration = (PropertiesPropertySource) environment + EnumerablePropertySource nodeConfiguration = (EnumerablePropertySource) environment .getPropertySources() .get(PROPERTY_SOURCE_CONFIGURATION);