lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -29,14 +29,13 @@
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/clean-up-snapshot-repo-api.html
#
def cleanup_repository(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)}/_cleanup"