File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
elasticsearch-api/lib/elasticsearch/api/actions/logstash Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ module Actions
30
30
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.7/logstash-api-get-pipeline.html
31
31
#
32
32
def get_pipeline ( arguments = { } )
33
- raise ArgumentError , "Required argument 'id' missing" unless arguments [ :id ]
34
-
35
33
arguments = arguments . clone
36
34
headers = arguments . delete ( :headers ) || { }
37
35
@@ -40,7 +38,11 @@ def get_pipeline(arguments = {})
40
38
_id = arguments . delete ( :id )
41
39
42
40
method = Elasticsearch ::API ::HTTP_GET
43
- path = "_logstash/pipeline/#{ Utils . __listify ( _id ) } "
41
+ path = if _id
42
+ "_logstash/pipeline/#{ Utils . __listify ( _id ) } "
43
+ else
44
+ "_logstash/pipeline"
45
+ end
44
46
params = { }
45
47
46
48
Elasticsearch ::API ::Response . new (
You can’t perform that action at this time.
0 commit comments