Skip to content

Commit

Permalink
Fix leader check
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed Jul 5, 2024
1 parent 0e082d0 commit 012da52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ def _set_primary_status_message(self) -> None:
"""Display 'Primary' in the unit status message if the current unit is the primary."""
try:
if "require-change-bucket-after-restore" in self.app_peer_data:
if self.charm.unit.is_leader():
if self.unit.is_leader():
self.app_peer_data.update({
"restoring-backup": "",
"restore-stanza": "",
Expand Down

0 comments on commit 012da52

Please sign in to comment.