Skip to content

Commit d7c01b3

Browse files
committed
Plugins: Remove leniency for missing plugins dir (#24173)
This leniency was left in after plugin installer refactoring for 2.0 because some tests still relied on it. However, the need for this leniency no longer exists.
1 parent 913e668 commit d7c01b3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/InstallPluginCommand.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ void execute(Terminal terminal, String pluginId, boolean isBatch, Environment en
206206
if (pluginId == null) {
207207
throw new UserException(ExitCodes.USAGE, "plugin id is required");
208208
}
209-
// TODO: remove this leniency!! is it needed anymore?
210-
if (Files.exists(env.pluginsFile()) == false) {
211-
terminal.println("Plugins directory [" + env.pluginsFile() + "] does not exist. Creating...");
212-
Files.createDirectory(env.pluginsFile());
213-
}
214209

215210
Path pluginZip = download(terminal, pluginId, env.tmpFile());
216211
Path extractedZip = unzip(pluginZip, env.pluginsFile());

0 commit comments

Comments
 (0)