File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 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(
229229 """
230230 Returns information about existing component_templates templates.
231231
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>`_
233233
234234 :param name: A pattern that returned component template names must match
235235 :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(
8181 """
8282 if id in SKIP_IN_PATH :
8383 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"
8588 __query : t .Dict [str , t .Any ] = {}
8689 if error_trace is not None :
8790 __query ["error_trace" ] = error_trace
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def component_templates(
229229 """
230230 Returns information about existing component_templates templates.
231231
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>`_
233233
234234 :param name: A pattern that returned component template names must match
235235 :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(
8181 """
8282 if id in SKIP_IN_PATH :
8383 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"
8588 __query : t .Dict [str , t .Any ] = {}
8689 if error_trace is not None :
8790 __query ["error_trace" ] = error_trace
You can’t perform that action at this time.
0 commit comments