Update elasticsearch dependency to 8.1 (#1911)
This commit is contained in:
@@ -13,7 +13,7 @@ from typing import Union
|
||||
import click
|
||||
import elasticsearch
|
||||
from elasticsearch import Elasticsearch
|
||||
from elasticsearch.client.async_search import AsyncSearchClient
|
||||
from elasticsearch.client import AsyncSearchClient
|
||||
|
||||
import kql
|
||||
from .main import root
|
||||
|
||||
@@ -358,7 +358,8 @@ elasticsearch_options = list(client_options['elasticsearch'].values())
|
||||
|
||||
def add_client(*client_type, add_to_ctx=True, add_func_arg=True):
|
||||
"""Wrapper to add authed client."""
|
||||
from elasticsearch import Elasticsearch, ElasticsearchException
|
||||
from elasticsearch import Elasticsearch
|
||||
from elasticsearch.exceptions import AuthenticationException
|
||||
from kibana import Kibana
|
||||
|
||||
def _wrapper(func):
|
||||
@@ -391,7 +392,7 @@ def add_client(*client_type, add_to_ctx=True, add_func_arg=True):
|
||||
pass
|
||||
else:
|
||||
elasticsearch_client = get_elasticsearch_client(use_ssl=True, **es_client_args)
|
||||
except ElasticsearchException:
|
||||
except AuthenticationException:
|
||||
elasticsearch_client = get_elasticsearch_client(use_ssl=True, **es_client_args)
|
||||
|
||||
if add_func_arg:
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
jsl==0.2.4
|
||||
pytoml
|
||||
toml==0.10.0
|
||||
requests==2.22.0
|
||||
requests~=2.27
|
||||
Click==7.0
|
||||
PyYAML~=5.3
|
||||
eql==0.9.12
|
||||
elasticsearch~=7.9
|
||||
elasticsearch~=8.1
|
||||
XlsxWriter~=1.3.6
|
||||
marshmallow~=3.13.0
|
||||
marshmallow-dataclass[union]~=8.5.3
|
||||
|
||||
Reference in New Issue
Block a user