Skip to content

Commit

Permalink
Fix exception of i18n in logstash-keystore (elastic#14246)
Browse files Browse the repository at this point in the history
This PR adds the load of i18n to LogStash::Settings to fix uninitialized constant I18n exception when using `logstash-keystore`
  • Loading branch information
kaisecheng authored Jun 13, 2022
1 parent 17700fc commit d63b6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logstash-core/lib/logstash/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require "logstash/util/byte_value"
require "logstash/util/substitution_variables"
require "logstash/util/time_value"
require "i18n"

module LogStash

Expand Down Expand Up @@ -805,7 +806,6 @@ def validate_value
# to be used exclusively through `SettingWithDeprecatedAlias#wrap`
class DeprecatedAlias < SimpleDelegator
# include LogStash::Util::Loggable

alias_method :wrapped, :__getobj__
attr_reader :canonical_proxy

Expand Down

0 comments on commit d63b6ae

Please sign in to comment.