Skip to content

Commit

Permalink
fix 123
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 24, 2024
1 parent 27583a6 commit 8c27fd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dbm-ui/backend/db_services/mysql/toolbox/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ def slave_ins_add_domain(self, request, **kwargs):
)
cluster_entry.storageinstance_set.add(*slave_ins)
try:
dns_manage.create_domain(
instance_list=[f"{slave_ins.machine.ip}#{slave_ins.port}"], add_domain_name=domain
)
dns_manage.create_domain(instance_list=["{}#{}".format(slave_ip, str(slave_port))], add_domain_name=domain)
except Exception as e:
logger.error(traceback.format_exc())
return Response({"result": False, "message": _("添加dns记录失败{}".format(e))})
Expand Down

0 comments on commit 8c27fd2

Please sign in to comment.