lib/elasticsearch/api/actions/cat/master.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/cat/master.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -28,16 +28,17 @@
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/cat-master.html
#
def master(arguments = {})
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
- body = nil
+ body = nil
+
+ arguments = arguments.clone
method = Elasticsearch::API::HTTP_GET
path = "_cat/master"
params = Utils.process_params(arguments)