lib/elasticsearch/api/actions/indices/put_index_template.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/indices/put_index_template.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -26,19 +26,20 @@
# @option arguments [String] :cause User defined reason for creating/updating the index template
# @option arguments [Time] :master_timeout Specify timeout for connection to master
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The template definition (*Required*)
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/indices-templates.html
#
def put_index_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 = "_index_template/#{Utils.__listify(_name)}"