Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 22e1078

Browse files
[client] Add ability to disable health check (#548)
1 parent c978757 commit 22e1078

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pycti/api/opencti_api_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def __init__(
110110
json_logging=False,
111111
cert=None,
112112
auth=None,
113+
perform_health_check=True,
113114
):
114115
"""Constructor method"""
115116

@@ -196,7 +197,7 @@ def __init__(
196197
self.indicator = Indicator(self)
197198

198199
# Check if openCTI is available
199-
if not self.health_check():
200+
if perform_health_check and not self.health_check():
200201
raise ValueError(
201202
"OpenCTI API is not reachable. Waiting for OpenCTI API to start or check your configuration..."
202203
)

0 commit comments

Comments
 (0)