Fixes #5446
This commit is contained in:
Pier-Hugues Pellerin 2016-06-02 15:50:31 -04:00
parent d81ad6172f
commit 587debd3e6

View file

@ -18,10 +18,10 @@ require "logstash/patches/clamp"
require "logstash/settings"
class LogStash::Runner < Clamp::StrictCommand
# The `path.settings` need to be defined in the runner instead of the `logstash-core/lib/logstash/environment.r`
# The `path.settings` need to be defined in the runner instead of the `logstash-core/lib/logstash/environment.rb`
# because the `Environment::LOGSTASH_HOME` doesn't exist in the context of the `logstash-core` gem.
#
# See issues https://github.com/elastic/logstash/issues/5361
# See issue https://github.com/elastic/logstash/issues/5361
LogStash::SETTINGS.register(LogStash::Setting::String.new("path.settings", ::File.join(LogStash::Environment::LOGSTASH_HOME, "config")))
# Node Settings