Skip to content

Commit ec2c3e6

Browse files
iSecloudzhangzhw8
authored andcommitted
fix(backend): 修复mnt的问题 #7728
1 parent e7e72c9 commit ec2c3e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dbm-ui/backend/ticket/builders/tendbcluster/tendb_full_backup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ def get_backup_local_params(cls, info):
3838
对备份位置进行提取,
3939
两种情况:remote/spider_mnt::127.0.0.1
4040
"""
41-
if info["backup_local"] != TenDBBackUpLocation.SPIDER_MNT:
41+
divider = "::"
42+
if divider not in info["backup_local"]:
4243
return info
4344

44-
backup_local, spider_mnt_address = info["backup_local"].split("::")
45+
backup_local, spider_mnt_address = info["backup_local"].split(divider)
4546
info["backup_local"] = backup_local
4647
info["spider_mnt_address"] = spider_mnt_address
4748

0 commit comments

Comments
 (0)