Skip to content

Commit

Permalink
fix(api): load the right property source for /configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ytvnr committed Feb 16, 2023
1 parent 656ca5c commit 1ab5e77
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit 1ab5e77

Please sign in to comment.