lib/elasticsearch/api/actions/cluster/reroute.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/cluster/reroute.rb in elasticsearch-api-8.1.2

- old
+ new

@@ -31,14 +31,13 @@ # @option arguments [Hash] :body The definition of `commands` to perform (`move`, `cancel`, `allocate`) # # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/cluster-reroute.html # def reroute(arguments = {}) + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) || {} - - arguments = arguments.clone method = Elasticsearch::API::HTTP_POST path = "_cluster/reroute" params = Utils.process_params(arguments)