relation-ids should default to $JUJU_RELATION, or if not available, raise an error
Bug #974650 reported by
Jim Baker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Undecided
|
Jim Baker |
Bug Description
The relation-ids hook command currently returns all relation ids if no relation name is specified. Instead it should default to $JUJU_RELATION. If that's not available, it should raise an error stating "Relation name must be specified".
Related branches
lp://staging/~jimbaker/pyjuju/must-specify-relation-name
- Juju Engineering: Pending requested
-
Diff: 188 lines (+72/-11)4 files modifiedjuju/hooks/commands.py (+11/-3)
juju/hooks/protocol.py (+16/-2)
juju/hooks/tests/test_communications.py (+16/-2)
juju/hooks/tests/test_invoker.py (+29/-4)
Changed in juju: | |
status: | New → In Progress |
assignee: | nobody → Jim Baker (jimbaker) |
milestone: | none → florence |
Changed in juju: | |
milestone: | florence → honolulu |
Changed in juju: | |
milestone: | honolulu → florence |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.