lib/elasticsearch/api/actions/ingest/processor_grok.rb in elasticsearch-api-7.17.11 vs lib/elasticsearch/api/actions/ingest/processor_grok.rb in elasticsearch-api-8.0.0.pre1

- old
+ new

@@ -21,22 +21,25 @@ module Actions # Returns a list of the built-in patterns. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.17/grok-processor.html#grok-processor-rest-get + # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get # def processor_grok(arguments = {}) headers = arguments.delete(:headers) || {} + body = nil + arguments = arguments.clone method = Elasticsearch::API::HTTP_GET path = "_ingest/processor/grok" params = {} - body = nil - perform_request(method, path, params, body, headers).body + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers) + ) end end end end end