change of I18n varname, possible fix for #5108

Fixes #5111
This commit is contained in:
Tony Laidig 2016-04-13 12:43:59 -04:00 committed by Pier-Hugues Pellerin
parent 82770921bb
commit 9f7fe0d4e5

View file

@ -86,7 +86,7 @@ module LogStash::Config::Mixin
extra = opts[:obsolete].is_a?(String) ? opts[:obsolete] : ""
extra.gsub!("%PLUGIN%", self.class.config_name)
raise LogStash::ConfigurationError,
I18n.t("logstash.agent.configuration.obsolete", :name => name,
I18n.t("logstash.runner.configuration.obsolete", :name => name,
:plugin => self.class.config_name, :extra => extra)
end
end