Comment 4 for bug 1654116

Revision history for this message
David Ames (thedac) wrote :

Juju 1.25.9 seems to behave the same. I can't find a .8 env to test against.

# leader-set poke=1 ; echo $?
error: cannot write leadership settings: cannot write settings: not the leader
1

If that is run in python we get the same subprocess.CalledProcessError which is missed by the check for OSError.

The charms will need to gate on is_leader.