Skip to content

Commit

Permalink
remove part from DPE-5235
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Aug 30, 2024
1 parent b24fdaa commit 301bfbe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,12 @@ def get_mongos_host(self) -> str:
"""
return self.unit_host(self.unit)

def get_mongos_hosts(self, external: bool = False) -> Set:
def get_mongos_hosts(self) -> Set:
"""Returns the host for mongos as a str.
The host for mongos can be either the Unix Domain Socket or an IP address depending on how
the client wishes to connect to mongos (inside Juju or outside).
"""
if external and self.is_external_client:
return {self.node_port_manager.get_node_ip}

hosts = {self.unit_host(self.unit)}
for unit in self.peers_units:
hosts.add(self.unit_host(unit))
Expand Down

0 comments on commit 301bfbe

Please sign in to comment.