Skip to content

Commit 6331d7e

Browse files
committed
[API] Updates transform.get_node_stats with proper method/no request body
1 parent 8c6876a commit 6331d7e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb

+2-7
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,9 @@ def get_node_stats(arguments = {})
3434
arguments = arguments.clone
3535
headers = arguments.delete(:headers) || {}
3636

37-
body = arguments.delete(:body)
38-
39-
method = if body
40-
Elasticsearch::API::HTTP_POST
41-
else
42-
Elasticsearch::API::HTTP_GET
43-
end
37+
body = nil
4438

39+
method = Elasticsearch::API::HTTP_GET
4540
path = '_transform/_node_stats'
4641
params = {}
4742

0 commit comments

Comments
 (0)