lib/elasticsearch/api/actions/indices/put_alias.rb in elasticsearch-api-1.0.6 vs lib/elasticsearch/api/actions/indices/put_alias.rb in elasticsearch-api-1.0.7
- old
+ new
@@ -25,11 +25,11 @@
#
def put_alias(arguments={})
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
valid_params = [ :timeout ]
- method = 'PUT'
- path = Utils.__pathify Utils.__escape(arguments[:index]), '_alias', Utils.__escape(arguments[:name])
+ method = HTTP_PUT
+ path = Utils.__pathify Utils.__listify(arguments[:index]), '_alias', Utils.__escape(arguments[:name])
params = Utils.__validate_and_extract_params arguments, valid_params
body = arguments[:body]
perform_request(method, path, params, body).body