From 0e7cf0d2f2e68055d5e577ae55816977a87d4f1a Mon Sep 17 00:00:00 2001 From: iSecloud <869820505@qq.com> Date: Thu, 19 Sep 2024 19:43:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20RedisCluster=E3=80=81Tendisplus?= =?UTF-8?q?=20=E7=9A=84=E8=AE=BF=E9=97=AE=E5=AF=86=E7=A0=81=20=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=90=8C=E6=97=B6=E4=BD=9C=E7=94=A8=E4=BA=8EProxy=20?= =?UTF-8?q?=E5=92=8C=E5=90=8E=E7=AB=AF=20#7011?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/ticket/builders/redis/redis_cluster_apply.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbm-ui/backend/ticket/builders/redis/redis_cluster_apply.py b/dbm-ui/backend/ticket/builders/redis/redis_cluster_apply.py index b19735ea8e..f7182ad733 100644 --- a/dbm-ui/backend/ticket/builders/redis/redis_cluster_apply.py +++ b/dbm-ui/backend/ticket/builders/redis/redis_cluster_apply.py @@ -188,7 +188,10 @@ def format_ticket_data(self): proxy_pwd = self.ticket_data.get("proxy_pwd") or DBPasswordHandler.get_random_password( security_type=DBPrivSecurityType.REDIS_PASSWORD ) + # 如果部署类型是RedisCluster、Tendisplus,则后端密码和proxy密码相同,以proxy为准 ticket_type = self.ticket_data["cluster_type"] + if ticket_type in [ClusterType.TendisPredixyRedisCluster, ClusterType.TendisPredixyTendisplusCluster]: + redis_pwd = proxy_pwd # 默认db数量 DEFAULT_DATABASES = 2