Skip to content

Commit

Permalink
pr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta committed Dec 31, 2024
1 parent d2e263e commit 06274a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions holmes/plugins/toolsets/opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ def __init__(self, clusters_configs:List[Dict]):
try:
logging.info(f"Setting up OpenSearch client")
client = OpenSearchClient(**config)
client.health = client.client.cluster.health()
if client.health:
if client.client.cluster.health():
clients.append(client)
except:
except Exception:
logging.exception("Failed to set up opensearch client")

super().__init__(
Expand Down

0 comments on commit 06274a3

Please sign in to comment.