Skip to content

Commit

Permalink
fix: attribute access
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Sep 24, 2024
1 parent ed8a941 commit a647066
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 @@ -845,7 +845,7 @@ def _on_stop(self, event) -> None:
try:
if self.unit.name == self.primary:
logger.debug("Stepping down current primary, before upgrading service...")
self._charm.upgrade.step_down_primary_and_wait_reelection()
self.upgrade.step_down_primary_and_wait_reelection()
except FailedToElectNewPrimaryError:
logger.error("Failed to reelect primary before upgrading unit.")
return
Expand Down

0 comments on commit a647066

Please sign in to comment.