lib/elasticsearch/api/actions/enrich/put_policy.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/enrich/put_policy.rb in elasticsearch-api-8.0.1

- old
+ new

@@ -29,14 +29,13 @@ # def put_policy(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 = "_enrich/policy/#{Utils.__listify(_name)}"