Why is unit id mandatory in config-changed context?

Gustavo Niemeyer gustavo at niemeyer.net
Fri May 31 22:50:16 UTC 2013


On Fri, May 31, 2013 at 6:46 PM, Andreas Hasenack <andreas at canonical.com> wrote:
> while playing with hooks I reached this bit in a config-changed hook:
(...)
> Why do I need to specify the unit id when I have the relation id already?

A single relation can have multiple units, and since you are in a
config-changed context, there's no implicit hint about which remote
unit you're talking about.


gustavo @ http://niemeyer.net



More information about the Juju mailing list