lib/elasticsearch/api/actions/searchable_snapshots/mount.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/searchable_snapshots/mount.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -34,14 +34,13 @@
def mount(arguments = {})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
raise ArgumentError, "Required argument 'snapshot' missing" unless arguments[:snapshot]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
-
- arguments = arguments.clone
_repository = arguments.delete(:repository)
_snapshot = arguments.delete(:snapshot)