mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Fix example plugin using config dir (#122212)
This commit fixes a use of accessing the config dir from the environment.
This commit is contained in:
parent
25ff35e156
commit
30a65fbec5
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ public class ExampleCustomSettingsConfig {
|
||||||
|
|
||||||
public ExampleCustomSettingsConfig(final Environment environment) {
|
public ExampleCustomSettingsConfig(final Environment environment) {
|
||||||
// Elasticsearch config directory
|
// Elasticsearch config directory
|
||||||
final Path configDir = environment.configFile();
|
final Path configDir = environment.configDir();
|
||||||
|
|
||||||
// Resolve the plugin's custom settings file
|
// Resolve the plugin's custom settings file
|
||||||
final Path customSettingsYamlFile = configDir.resolve("custom-settings/custom.yml");
|
final Path customSettingsYamlFile = configDir.resolve("custom-settings/custom.yml");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue