lib/elasticsearch/api/actions/info.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/info.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -23,23 +23,25 @@ module Actions # Returns basic information about the cluster. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/index.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/index.html # def info(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || "info" } + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = "" params = {} Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers) + perform_request(method, path, params, body, headers, request_opts) ) end end end end