Skip to content

Commit b08a9e0

Browse files
committed
out_elasticsearch: Remove a needless enum for deprecated option
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 57dda3e commit b08a9e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fluent/plugin/out_elasticsearch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def initialize(retry_stream)
147147
config_param :sniffer_class_name, :string, :default => nil
148148
config_param :selector_class_name, :string, :default => nil
149149
config_param :reload_after, :integer, :default => DEFAULT_RELOAD_AFTER
150-
config_param :content_type, :enum, list: [:"application/json", :"application/x-ndjson", :"#{ES9_CONTENT_TYPE}"], :default => :"application/json",
150+
config_param :content_type, :enum, list: [:"application/json", :"application/x-ndjson"], :default => :"application/json",
151151
:deprecated => <<EOC
152152
elasticsearch gem v6.0.2 starts to use correct Content-Type. Please upgrade elasticserach gem and stop to use this option.
153153
see: https://github.com/elastic/elasticsearch-ruby/pull/514

0 commit comments

Comments
 (0)