Fix bug in deprecation of 'fields' setting

This commit is contained in:
Jordan Sissel 2013-05-30 23:15:07 -07:00
parent 4e93290ef0
commit 45b3e596f0

View file

@ -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