From 1c000c5cddbc106489d15f403ef5234d7fe3716c Mon Sep 17 00:00:00 2001 From: Marcelo Henrique Neppel Date: Fri, 31 May 2024 16:50:58 -0300 Subject: [PATCH] Fix app status set Signed-off-by: Marcelo Henrique Neppel --- src/relations/async_replication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relations/async_replication.py b/src/relations/async_replication.py index 072a1e51df..006966ddc7 100644 --- a/src/relations/async_replication.py +++ b/src/relations/async_replication.py @@ -495,7 +495,7 @@ def _on_async_relation_broken(self, _) -> None: if self.charm._patroni.get_standby_leader() is not None: if self.charm.unit.is_leader(): self.charm._peers.data[self.charm.app].update({"promoted-cluster-counter": "0"}) - self._set_app_status() + self._set_app_status() else: if self.charm.unit.is_leader(): self.charm._peers.data[self.charm.app].update({"promoted-cluster-counter": ""})