Fix elasticsearch status display (#3487)

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Signed-off-by: jinhai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2024-11-19 14:40:58 +08:00
committed by GitHub
parent 568322aeaf
commit 883fafde72
2 changed files with 16 additions and 14 deletions

View File

@ -63,7 +63,9 @@ class ESConnection(DocStoreConnection):
return "elasticsearch"
def health(self) -> dict:
return dict(self.es.cluster.health()) + {"type": "elasticsearch"}
health_dict = dict(self.es.cluster.health())
health_dict["type"] = "elasticsearch"
return health_dict
"""
Table operations