Fix exception of i18n in logstash-keystore (#14246) (#14249)

This PR adds the load of i18n to LogStash::Settings to fix uninitialized constant I18n exception when using `logstash-keystore`

(cherry picked from commit d63b6ae564)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2022-06-13 12:59:40 -07:00 committed by GitHub
parent cd9fb4c39e
commit 6b2b4460a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ require "delegate"
require "logstash/util/byte_value"
require "logstash/util/substitution_variables"
require "logstash/util/time_value"
require "i18n"
module LogStash
class Settings
@ -781,7 +782,6 @@ module LogStash
# to be used exclusively through `SettingWithDeprecatedAlias#wrap`
class DeprecatedAlias < SimpleDelegator
# include LogStash::Util::Loggable
alias_method :wrapped, :__getobj__
attr_reader :canonical_proxy