Skip to content

Commit

Permalink
Switch to peer ip property
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Aug 31, 2024
1 parent 560b176 commit b65ed11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/relations/pgbouncer_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ def update_connection_info(self, relation):
host = str(self.charm.config.vip)
uri_host = host
else:
host = self.charm.leader_ip
host = self.charm.peers.leader_ip
uri_host = ",".join([
self.charm.leader_ip,
*[ip for ip in self.charm.peers.units_ips if ip != self.charm.leader_ip],
self.charm.peers.leader_ip,
*[ip for ip in self.charm.peers.units_ips if ip != self.charm.peers.leader_ip],
])
port = self.charm.config.listen_port

Expand Down

0 comments on commit b65ed11

Please sign in to comment.