feat(api): elasticsearch fixed typo

This commit is contained in:
Taha Yassine Kraiem 2022-06-17 15:40:47 +02:00 committed by rjshrjndrn
parent 41e3d9d351
commit e813cd593f

View file

@ -59,11 +59,11 @@ def add_edit(tenant_id, project_id, data):
def __get_es_client(host, port, api_key_id, api_key, use_ssl=False, timeout=15):
schema = "http" if host.startswith("http") else "https"
scheme = "http" if host.startswith("http") else "https"
host = host.replace("http://", "").replace("https://", "")
try:
args = {
"hosts": [{"host": host, "port": port, "schema": schema}],
"hosts": [{"host": host, "port": port, "scheme": scheme}],
"verify_certs": False,
# "ca_certs": False,
# "connection_class": RequestsHttpConnection,