lib/elasticsearch/api/actions/indices/put_template.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/indices/put_template.rb in elasticsearch-api-8.0.1
- old
+ new
@@ -32,14 +32,13 @@
#
def put_template(arguments = {})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
-
- arguments = arguments.clone
_name = arguments.delete(:name)
method = Elasticsearch::API::HTTP_PUT
path = "_template/#{Utils.__listify(_name)}"