relation_id() fails with multiple relations to the same service
Bug #1593425 reported by
Stuart Bishop
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Triaged
|
Medium
|
Unassigned |
Bug Description
hookenv.
eg.
juju deploy local:a
juju deploy local:b
juju add-relation a:rela b:relx
juju add-relation a:relb b:relx
If a unit in service b called relation_id('relx', 'a') it would get one of the two relation ids randomly.
To post a comment you must log in.
The only fixes are deprecating and removing the options, or raising an exception and have the charm fail explicitly in this situation (out of its control - it is triggered by how the remote service is implemented).