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.
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. CalledProcessEr ror which is missed by the check for OSError.
The charms will need to gate on is_leader.