lib/elasticsearch/api/actions/tasks/get.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/tasks/get.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -28,16 +28,17 @@ # @option arguments [String] :task_id Return the task with specified id (node_id:task_number) # @option arguments [Boolean] :wait_for_completion Wait for the matching tasks to complete (default: false) # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/tasks.html # def get(arguments = {}) - arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil + + arguments = arguments.clone _task_id = arguments.delete(:task_id) method = Elasticsearch::API::HTTP_GET path = "_tasks/#{Utils.__listify(_task_id)}"