Skip to content

Commit

Permalink
fix(backend): 修复mnt的问题 TencentBlueKing#7728
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Nov 4, 2024
1 parent 4f509ec commit ab513ed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ def get_backup_local_params(cls, info):
对备份位置进行提取,
两种情况:remote/spider_mnt::127.0.0.1
"""
if info["backup_local"] != TenDBBackUpLocation.SPIDER_MNT:
divider = "::"
if divider not in info["backup_local"]:
return info

backup_local, spider_mnt_address = info["backup_local"].split("::")
backup_local, spider_mnt_address = info["backup_local"].split(divider)
info["backup_local"] = backup_local
info["spider_mnt_address"] = spider_mnt_address

Expand Down

0 comments on commit ab513ed

Please sign in to comment.