From c9801fb2e8d392bd01313bc25ffa253920603bcf Mon Sep 17 00:00:00 2001 From: ycggyao Date: Fri, 15 Nov 2024 10:12:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E9=9B=86=E7=BE=A4flag=20Cluste?= =?UTF-8?q?rCommonStatusFlags=E9=97=AE=E9=A2=98=20#7969=20#=20Reviewed,=20?= =?UTF-8?q?transaction=20id:=2023909?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/db_meta/models/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-ui/backend/db_meta/models/cluster.py b/dbm-ui/backend/db_meta/models/cluster.py index 1c214d6c5d..5c380f687d 100644 --- a/dbm-ui/backend/db_meta/models/cluster.py +++ b/dbm-ui/backend/db_meta/models/cluster.py @@ -217,7 +217,7 @@ def __status_flag(self): if self.storageinstance_set.filter(status=InstanceStatus.UNAVAILABLE.value).exists(): flag_obj |= ClusterRedisStatusFlags.RedisUnavailable # sqlserver ha - if self.cluster_type == ClusterType.SqlserverHA.value: + elif self.cluster_type == ClusterType.SqlserverHA.value: flag_obj = ClusterSqlserverStatusFlags(0) if self.storageinstance_set.filter( status=InstanceStatus.UNAVAILABLE.value, instance_inner_role=InstanceInnerRole.MASTER.value