Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10301 from manadart/2.5-write-leader-settings-guard
#10301 ## Description of change This is a reversion of a single commit from #9353. The commit logs a warning instead of returning an error when `LeaderSettingsChanged` is called by a non-leader unit. That commit should not have been retained in the patch, which ultimately focussed on re-checking leader status when preparing to fire the _leader-elected_ hook. ## QA steps - Bootstrap. - `juju deploy ubuntu -n 2` - `juju run --unit <whichever is not the leader> leader-set`. - Result should be: `ERROR cannot write leadership settings: cannot write settings: not the leader`. ## Documentation changes None. ## Bug reference Original: https://bugs.launchpad.net/juju-core/+bug/1723184
- Loading branch information