Skip to content

Commit

Permalink
fix(backend): 修复sqlserver单节点获取远程地址 #7114
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Sep 24, 2024
1 parent efbaa74 commit ba6dc16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ def topo_graph(self):
def get_remote_address(self) -> StorageInstance:
"""查询DRS访问远程数据库的地址"""
return StorageInstance.objects.get(
cluster=self.cluster, instance_inner_role=InstanceInnerRole.MASTER.value
cluster=self.cluster, instance_inner_role=InstanceInnerRole.ORPHAN.value
).ip_port

0 comments on commit ba6dc16

Please sign in to comment.