Skip to content

Commit 6c206b3

Browse files
DPE-7726: Fix topology obsert Primarly status removal
On topology observer event, the primary unit used to loose Primarly label.
1 parent 1c11581 commit 6c206b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/charm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ def _on_cluster_topology_change(self, _):
13321332
logger.info("Cluster topology changed")
13331333
if self.primary_endpoint:
13341334
self._update_relation_endpoints()
1335-
self.set_unit_status(ActiveStatus())
1335+
self._set_primary_status_message()
13361336

13371337
def _on_install(self, event: InstallEvent) -> None:
13381338
"""Install prerequisites for the application."""

0 commit comments

Comments
 (0)