From c92c97c7cea2b036291259bab064b69d4e0debd2 Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" Date: Mon, 11 Oct 2021 17:41:04 +0300 Subject: [PATCH] Use entity.status.phase when updating cluster state 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"; })();