A new version of charms.reactive (0.4.0) has been released <https://pypi.python.org/pypi/charms.reactive>. As it is backwards compatible, it will automatically be updated whenever you rebuild a layered charm.
It includes the following changes: * New @when_any <https://pythonhosted.org/charms.reactive/charms.reactive.decorators.html#charms.reactive.decorators.when_any> and @when_not_all <https://pythonhosted.org/charms.reactive/charms.reactive.decorators.html#charms.reactive.decorators.when_not_all> decorators * Fix for some files in interface layers being mistakenly treated as reactive handlers The @when_any decorator works particularly well with the config.changed.{varname} <https://github.com/juju-solutions/layer-basic#reactive-states> and leadership.changed.{varname} <https://git.launchpad.net/layer-leadership/tree/README.md#n30> states provided by the base and leadership layers, respectively. Note that, like @when_none, it never passes in an argument.
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju