From 58ac856c898ffa28e019d73595e94b02d0939cfb Mon Sep 17 00:00:00 2001 From: chh <1474479+chenhunghan@users.noreply.github.com> Date: Tue, 12 Oct 2021 08:07:39 +0300 Subject: [PATCH] Use entity.status.phase when updating cluster state (#4009) Signed-off-by: Hung-Han (Henry) Chen --- src/main/cluster-manager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/cluster-manager.ts b/src/main/cluster-manager.ts index a5c9179499..e72cbd59cc 100644 --- a/src/main/cluster-manager.ts +++ b/src/main/cluster-manager.ts @@ -160,6 +160,10 @@ export class ClusterManager extends Singleton { return "connecting"; } + if (entity?.status?.phase) { + return entity.status.phase; + } + return "disconnected"; })();