diff --git a/src/charm.py b/src/charm.py index ec84c911b24..0acbbe1aa61 100755 --- a/src/charm.py +++ b/src/charm.py @@ -200,6 +200,7 @@ def unit_number(unit_name: str): self._charm.async_replication.get_primary_cluster_endpoint() ), ) + self._charm._update_relation_endpoints() except SwitchoverFailedError as e: logger.warning(f"switchover failed with reason: {e}") raise charm_refresh.PrecheckFailed("Unable to switch primary")