File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ async def component_templates(
229
229
"""
230
230
Returns information about existing component_templates templates.
231
231
232
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-compoentn -templates.html>`_
232
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component -templates.html>`_
233
233
234
234
:param name: A pattern that returned component template names must match
235
235
:param format: Specifies the format to return the columnar data in, can be set
Original file line number Diff line number Diff line change @@ -81,7 +81,10 @@ async def get_pipeline(
81
81
"""
82
82
if id in SKIP_IN_PATH :
83
83
raise ValueError ("Empty value passed for parameter 'id'" )
84
- __path = f"/_logstash/pipeline/{ _quote (id )} "
84
+ if id not in SKIP_IN_PATH :
85
+ __path = f"/_logstash/pipeline/{ _quote (id )} "
86
+ else :
87
+ __path = "/_logstash/pipeline"
85
88
__query : t .Dict [str , t .Any ] = {}
86
89
if error_trace is not None :
87
90
__query ["error_trace" ] = error_trace
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def component_templates(
229
229
"""
230
230
Returns information about existing component_templates templates.
231
231
232
- `<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-compoentn -templates.html>`_
232
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component -templates.html>`_
233
233
234
234
:param name: A pattern that returned component template names must match
235
235
:param format: Specifies the format to return the columnar data in, can be set
Original file line number Diff line number Diff line change @@ -81,7 +81,10 @@ def get_pipeline(
81
81
"""
82
82
if id in SKIP_IN_PATH :
83
83
raise ValueError ("Empty value passed for parameter 'id'" )
84
- __path = f"/_logstash/pipeline/{ _quote (id )} "
84
+ if id not in SKIP_IN_PATH :
85
+ __path = f"/_logstash/pipeline/{ _quote (id )} "
86
+ else :
87
+ __path = "/_logstash/pipeline"
85
88
__query : t .Dict [str , t .Any ] = {}
86
89
if error_trace is not None :
87
90
__query ["error_trace" ] = error_trace
You can’t perform that action at this time.
0 commit comments