Leadership layer released

Stuart Bishop stuart.bishop at canonical.com
Thu Jan 28 16:56:30 UTC 2016


On 28 January 2016 at 21:42, Cory Johns <cory.johns at canonical.com> wrote:
> This is awesome.  A very clean interface for dealing with leadership in
> layered charms.
>
> I also very much like the pattern of having states that notify of changes to
> the leadership settings and think this pattern could apply well to config
> settings.  One addition I would suggest to that pattern would be to also
> have a blanket `leadership.changed` state that would be set when *any* value
> was changed.  This is mostly to handle the case where you need to react to
> any of a set of multiple values changing.  Thoughts?

Sure. Its trivial to add, and if people find it useful great. It does
mean your handlers will get invoked if another layer changes
leadership settings, which I guess may be exactly what you want to
happen.



-- 
Stuart Bishop <stuart.bishop at canonical.com>



More information about the Juju mailing list