lib/elasticsearch/api/actions/indices/put_alias.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/indices/put_alias.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -26,19 +26,20 @@ # @option arguments [Time] :timeout Explicit timestamp for the document # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body The settings for the alias, such as `routing` or `filter` # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/indices-aliases.html # def put_alias(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] - arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) + + arguments = arguments.clone _index = arguments.delete(:index) _name = arguments.delete(:name)