1 parent c978757 commit 22e1078Copy full SHA for 22e1078
1 file changed
pycti/api/opencti_api_client.py
@@ -110,6 +110,7 @@ def __init__(
110
json_logging=False,
111
cert=None,
112
auth=None,
113
+ perform_health_check=True,
114
):
115
"""Constructor method"""
116
@@ -196,7 +197,7 @@ def __init__(
196
197
self.indicator = Indicator(self)
198
199
# Check if openCTI is available
- if not self.health_check():
200
+ if perform_health_check and not self.health_check():
201
raise ValueError(
202
"OpenCTI API is not reachable. Waiting for OpenCTI API to start or check your configuration..."
203
)
0 commit comments