Skip to content

Commit d13d74e

Browse files
committed
[API] Generator: Bulkify body for find_file_structure
1 parent a7301a8 commit d13d74e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

elasticsearch-api/utils/thor/templates/_perform_request.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ when 'mtermvectors'
99
end
1010
<%- when 'cluster.reroute', 'cluster.put_settings' %>
1111
body = arguments[:body] || {}
12+
<%- when 'ml.find_file_structure' %>
13+
body = Elasticsearch::API::Utils.__bulkify(arguments.delete(:body))
1214
<%- else -%>
1315
<%= ' '*(@namespace_depth+3) %>body = <%= @spec['body'].nil? ? 'nil' : 'arguments[:body]' %>
1416
<%- end -%>

0 commit comments

Comments
 (0)