On Mon, Oct 20, 2014 at 9:55 AM, Christopher Glass <[email protected]>
wrote:

> Y's unit name should be accessible through "$JUJU_REMOTE_UNIT" from
> X's relation-joined hook.
> See
> http://juju-docs.readthedocs.org/en/latest/internals/unit-agent-hooks.html
>

I tried that, but got in the weird situation where it's possible for a
relation to exist, but no units be part of it.

In other words, if relids = relation_ids(name) and relids is not null, it's
possible for relation_list(relids[0]) to be empty.
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to