lib/elasticsearch/api/actions/snapshot/repository_analyze.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/snapshot/repository_analyze.rb in elasticsearch-api-8.0.1
- old
+ new
@@ -38,14 +38,13 @@
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
#
def repository_analyze(arguments = {})
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
-
- arguments = arguments.clone
_repository = arguments.delete(:repository)
method = Elasticsearch::API::HTTP_POST
path = "_snapshot/#{Utils.__listify(_repository)}/_analyze"