Skip to content

Commit cf6e998

Browse files
committed
Try to update ips first
1 parent 08cea05 commit cf6e998

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/charm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,15 +1431,13 @@ def _on_config_changed(self, event) -> None: # noqa: C901
14311431
if self._update_member_ip():
14321432
# Update the sync-standby endpoint in the async replication data.
14331433
self.async_replication.update_async_replication_data()
1434-
self.update_config(no_peers=True)
14351434
return
14361435

14371436
try:
14381437
self._validate_config_options()
14391438
# update config on every run
14401439
self.update_config()
14411440
except psycopg2.OperationalError:
1442-
logger.exception("Postgresql error")
14431441
logger.debug("Defer on_config_changed: Cannot connect to database")
14441442
event.defer()
14451443
return

0 commit comments

Comments
 (0)