File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
elasticsearch-api/utils/thor Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,19 @@ module EndpointSpecifics
33
33
# Endpoints that need Utils.__rescue_from_not_found if the ignore
34
34
# parameter is included
35
35
COMPLEX_IGNORE_404 = %w[
36
+ clear_scroll
36
37
delete
37
38
get
38
- indices.flush_synced
39
- indices.delete_template
40
39
indices.delete
40
+ indices.delete_template
41
+ indices.flush_synced
41
42
security.get_role
42
43
security.get_user
43
- snapshot.status
44
+ snapshot.delete
45
+ snapshot.delete_repository
44
46
snapshot.get
45
47
snapshot.get_repository
46
- snapshot.delete_repository
47
- snapshot.delete
48
+ snapshot.status
48
49
update
49
50
watcher.delete_watch
50
51
] . freeze
Original file line number Diff line number Diff line change 27
27
endpoint = arguments.delete(:endpoint) || '_termvectors'
28
28
<%- end -%>
29
29
<%= ' '*(@namespace_depth+4) %> path = <%= @http_path %>
30
- <%- unless @params.empty? -%>
30
+ <%- if ! @params.empty? || needs_ignore_404?(@endpoint_name) || needs_complex_ignore_404?(@endpoint_name) -%>
31
31
<%= ' '*(@namespace_depth+4) %> params = Utils.process_params(arguments)
32
32
<%- else -%>
33
33
<%= ' '*(@namespace_depth+4) %> params = {}
You can’t perform that action at this time.
0 commit comments