Skip to content

Commit

Permalink
fix(backend): 集群flag ClusterCommonStatusFlags问题 TencentBlueKing#7969
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 23909
  • Loading branch information
ygcyao committed Nov 15, 2024
1 parent 9bdedfd commit 9c52b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm-ui/backend/db_meta/models/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c52b45

Please sign in to comment.