lib/elasticsearch/api/actions/snapshot/create_repository.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/snapshot/create_repository.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -32,14 +32,13 @@
#
def create_repository(arguments = {})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
-
- arguments = arguments.clone
_repository = arguments.delete(:repository)
method = Elasticsearch::API::HTTP_PUT
path = "_snapshot/#{Utils.__listify(_repository)}"