mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
Rename environment dir accessors (#121803)
The node environment has many paths. The accessors for these currently use a "file" suffix, but they are always directories. This commit renames the accessors to make it clear these paths are directories.
This commit is contained in:
parent
1e12b547ca
commit
0cf42f2388
128 changed files with 520 additions and 528 deletions
|
@ -41,7 +41,7 @@ public class IngestUserAgentPlugin extends Plugin implements IngestPlugin {
|
|||
|
||||
@Override
|
||||
public Map<String, Processor.Factory> getProcessors(Processor.Parameters parameters) {
|
||||
Path userAgentConfigDirectory = parameters.env.configFile().resolve("ingest-user-agent");
|
||||
Path userAgentConfigDirectory = parameters.env.configDir().resolve("ingest-user-agent");
|
||||
|
||||
if (Files.exists(userAgentConfigDirectory) == false && Files.isDirectory(userAgentConfigDirectory)) {
|
||||
throw new IllegalStateException(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue