Adding a bug task for juju; this is a pretty small codeblock to have leadership switch between two lines:
_password = leader_get(key) if not _password and is_leader(): _password = config(key) or pwgen() leader_set({key: _password}) return _password
Adding a bug task for juju; this is a pretty small codeblock to have leadership switch between two lines:
_password = leader_get(key)
leader_ set({key: _password})
if not _password and is_leader():
_password = config(key) or pwgen()
return _password