lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -22,18 +22,19 @@
# Retries executing the policy for an index that is in the ERROR step.
#
# @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/ilm-retry-policy.html
#
def retry(arguments = {})
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
- body = nil
+ body = nil
+
+ arguments = arguments.clone
_index = arguments.delete(:index)
method = Elasticsearch::API::HTTP_POST
path = "#{Utils.__listify(_index)}/_ilm/retry"