Why is unit id mandatory in config-changed context?

Andreas Hasenack andreas at canonical.com
Fri May 31 23:14:41 UTC 2013


On Fri, May 31, 2013 at 7:50 PM, Gustavo Niemeyer <gustavo at niemeyer.net>wrote:

> 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.
>
>
But aren't the key-value pairs that I set in the relation the same for all
units?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130531/4e2adb34/attachment.html>


More information about the Juju mailing list