lib/elasticsearch/api/actions/transform/preview_transform.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/transform/preview_transform.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -27,14 +27,13 @@
# @option arguments [Hash] :body The definition for the transform to preview
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/preview-transform.html
#
def preview_transform(arguments = {})
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
-
- arguments = arguments.clone
_transform_id = arguments.delete(:transform_id)
method = if body
Elasticsearch::API::HTTP_POST