Skip to content

Commit

Permalink
Add log for fix_leader_annotation method (canonical#679)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel authored Sep 5, 2024
1 parent 5929b0e commit 8c186b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ def fix_leader_annotation(self) -> bool:
Endpoints, name=self.cluster_name, namespace=self._namespace, obj=patch
)
self.app_peer_data.pop("cluster_initialised", None)
logger.info("Fixed missing leader annotation")
except ApiError as e:
if e.status.code == 403:
self.on_deployed_without_trust()
Expand Down

0 comments on commit 8c186b8

Please sign in to comment.