relation-get - missing_unit behavior

Mark Shuttleworth mark at ubuntu.com
Sat Jun 22 05:48:19 UTC 2013


On 06/21/2013 10:26 PM, Gustavo Niemeyer wrote:
> Fetching relation data for non-existing units does sound pathological
> and twisted. It means that the charm is basically implying it knows
> how the context it's being deployed under looks like, including remote
> units it can talk to.

The rationale is to have charms which are useful in many places. A charm
which makes assumptions about what's around it is by definition only
useful when those assumptions are true. So, it would be worth taking the
time to make it useful with, or without, the relations that may or may
not show up.

Mark



More information about the Juju mailing list