Incorrect help text for relation-get
Bug #1876789 reported by
Kenneth Koski
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
relation-get has this help text:
...
When reading remote relation data, a charm can call relation-get --app - to get
the data for the application data bag that is set by the remote applications
leader.
...
If I'm reading that correctly, I can run `relation-get --app -` to get the application data bag, but I get this error when attempting to run it inside of a hook:
ERROR no unit or application specified
Changed in juju: | |
assignee: | nobody → Heather Lanigan (hmlanigan) |
Changed in juju: | |
milestone: | 2.8.1 → 2.8.2 |
Changed in juju: | |
assignee: | Heather Lanigan (hmlanigan) → nobody |
Changed in juju: | |
milestone: | 2.8.2 → 2.8.3 |
Changed in juju: | |
milestone: | 2.8.4 → 2.9-beta1 |
Changed in juju: | |
milestone: | 2.9-beta1 → 2.9-rc1 |
tags: | added: bitesize charm-debugging docs |
Changed in juju: | |
milestone: | 2.9-rc1 → none |
To post a comment you must log in.
relation-get --app is the correct syntax
I assume it is being run inside a relation hook? Otherwise the -r arg is needed to explicitly specify the relation.
You get that error if the remote application that is at the other end of the relation is not yet available or not found.
You also get the same error without --app (querying unit relation data) if the other side is not available.