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

Commit 17bc9fe

Browse files
committed
[client] Change health check for backward compat
1 parent 7951d7b commit 17bc9fe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pycti/api/opencti_api_client.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,13 +381,15 @@ def health_check(self):
381381
:rtype: bool
382382
"""
383383
try:
384-
self.app_logger.info("Health check (me)...")
384+
self.app_logger.info("Health check (platform version)...")
385385
test = self.query(
386386
"""
387-
query {
388-
me_id
389-
}
390-
"""
387+
query {
388+
about {
389+
version
390+
}
391+
}
392+
"""
391393
)
392394
if test is not None:
393395
return True

0 commit comments

Comments
 (0)