diff --git a/server/src/main/java/org/elasticsearch/cluster/coordination/RemoveCustomsCommand.java b/server/src/main/java/org/elasticsearch/cluster/coordination/RemoveCustomsCommand.java index 82bcd4f3db484..923c6721f9131 100644 --- a/server/src/main/java/org/elasticsearch/cluster/coordination/RemoveCustomsCommand.java +++ b/server/src/main/java/org/elasticsearch/cluster/coordination/RemoveCustomsCommand.java @@ -62,7 +62,7 @@ protected void processNodePaths(Terminal terminal, Path[] dataPaths, OptionSet o throw new UserException(ExitCodes.USAGE, "Must supply at least one custom metadata name to remove"); } - final PersistedClusterStateService persistedClusterStateService = createPersistedClusterStateService(dataPaths); + final PersistedClusterStateService persistedClusterStateService = createPersistedClusterStateService(env.settings(), dataPaths); terminal.println(Terminal.Verbosity.VERBOSE, "Loading cluster state"); final Tuple termAndClusterState = loadTermAndClusterState(persistedClusterStateService, env);