Skip to content

Commit

Permalink
fix(redis): predixy扩容管理密码获取失败 #7110
Browse files Browse the repository at this point in the history
  • Loading branch information
OMG-By committed Sep 24, 2024
1 parent 5c9bf24 commit 2d53b09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def redis_proxy_scale_up_flow(self):
}
# 如果从config_info中取出了admin_pwd,则说明是predixy,需要补充进params
if proxy_version == ConfigFileEnum.Predixy:
if "predixy_admin_passwd" in config_info and config_info["predixy_admin_passwd"]:
params["proxy_admin_pwd"] = config_info["predixy_admin_passwd"]
if "redis_proxy_admin_password" in config_info and config_info["redis_proxy_admin_password"]:
params["proxy_admin_pwd"] = config_info["redis_proxy_admin_password"]
else:
# 集群架构是predixy,但是之前没有管理密码,默认跟读写密码一样
params["proxy_admin_pwd"] = config_info["password"]
Expand Down

0 comments on commit 2d53b09

Please sign in to comment.