lib/elasticsearch/api/actions/snapshot/create_repository.rb in elasticsearch-api-1.0.6 vs lib/elasticsearch/api/actions/snapshot/create_repository.rb in elasticsearch-api-1.0.7
- old
+ new
@@ -28,10 +28,10 @@
:master_timeout,
:timeout ]
repository = arguments.delete(:repository)
- method = 'PUT'
+ method = HTTP_PUT
path = Utils.__pathify( '_snapshot', Utils.__escape(repository) )
params = Utils.__validate_and_extract_params arguments, valid_params
body = arguments[:body]