Skip to content

Commit

Permalink
dbms.cluster.overview() will return one record per instance so expect…
Browse files Browse the repository at this point in the history
…ing single record is incorrect (#1968)

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
  • Loading branch information
allisonsuarez committed Aug 21, 2022
1 parent ca4a048 commit 64a3a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata/metadata_service/proxy/neo4j_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def health(self) -> health_check.HealthCheck:
try:
# dbms.cluster.overview() is only available for enterprise neo4j users
cluster_overview = self._execute_cypher_query(statement='CALL dbms.cluster.overview()', param_dict={})
checks = dict(get_single_record(cluster_overview))
checks = dict(cluster_overview[0])
checks['overview_enabled'] = True
status = health_check.OK
except ClientError:
Expand Down

0 comments on commit 64a3a4a

Please sign in to comment.