Skip to content

Commit 1837b9c

Browse files
Clear status message
1 parent 809daa0 commit 1837b9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/charm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,9 @@ def _can_start(self, event: StartEvent) -> bool:
15671567

15681568
def _on_start(self, event: StartEvent) -> None:
15691569
"""Handle the start event."""
1570+
logger.debug("Clear the preivous status message (on reboot)")
1571+
self.set_unit_status(MaintenanceStatus(""))
1572+
15701573
if not self._can_start(event):
15711574
return
15721575

0 commit comments

Comments
 (0)