mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Fix bug in deprecation of 'fields' setting
This commit is contained in:
parent
4e93290ef0
commit
45b3e596f0
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class LogStash::Outputs::Base < LogStash::Plugin
|
|||
@exclude_method = @exclude_any ? :any? : :all?
|
||||
|
||||
# TODO(piavlo): Remove this once fields config will be removed
|
||||
if @include_fields.empty? and not @fields.empty?
|
||||
if @include_fields.empty? && !@fields.nil? && !@fields.empty?
|
||||
@include_fields = @fields
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue