Change all instances of es->opensearch and ES->OPENSEARCH

Signed-off-by: Rushi Agrawal <[email protected]>
This commit is contained in:
Rushi Agrawal
2021-08-19 07:58:20 +05:30
parent c6cae11f97
commit 004e346bb0
10 changed files with 40 additions and 40 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ def _make_path(*parts):
GLOBAL_PARAMS = ("pretty", "human", "error_trace", "format", "filter_path")
def query_params(*es_query_params):
def query_params(*opensearch_query_params):
"""
Decorator that pops all accepted parameters from method's kwargs and puts
them in the params argument.
@@ -164,7 +164,7 @@ def query_params(*es_query_params):
elif api_key is not None:
headers["authorization"] = "ApiKey %s" % (_base64_auth_header(api_key),)
for p in es_query_params + GLOBAL_PARAMS:
for p in opensearch_query_params + GLOBAL_PARAMS:
if p in kwargs:
v = kwargs.pop(p)
if v is not None: