lib/elasticsearch/api/actions/transform/delete_transform.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/transform/delete_transform.rb in elasticsearch-api-8.0.1
- old
+ new
@@ -29,14 +29,13 @@
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html
#
def delete_transform(arguments = {})
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
-
- arguments = arguments.clone
_transform_id = arguments.delete(:transform_id)
method = Elasticsearch::API::HTTP_DELETE
path = "_transform/#{Utils.__listify(_transform_id)}"