Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ def __init__(self,
except Exception as err:
self.__es = None

# Skip product check for OpenSearch compatibility (elasticsearch-py 7.14+ rejects non-Elasticsearch servers)
try:
if self.__es and hasattr(self.__es.transport, '_verified_elasticsearch'):
self.__es.transport._verified_elasticsearch = True
except AttributeError as err:
logger.warning(f"Could not bypass Elasticsearch product check: {err}")

def __elasticsearch_get_index_hits(self, index: str, uuid: str = '', workload: str = '', fast_check: bool = False,
id: bool = False):
"""
Expand Down