Skip to content

Commit

Permalink
[client] Change health check for backward compat
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Feb 4, 2024
1 parent 7951d7b commit 17bc9fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pycti/api/opencti_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,15 @@ def health_check(self):
:rtype: bool
"""
try:
self.app_logger.info("Health check (me)...")
self.app_logger.info("Health check (platform version)...")
test = self.query(
"""
query {
me_id
}
"""
query {
about {
version
}
}
"""
)
if test is not None:
return True
Expand Down

0 comments on commit 17bc9fe

Please sign in to comment.