Adds support for -r option to specify relation id for relation hook commands.
Bug #965845 reported by
Jim Baker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Undecided
|
Jim Baker |
Bug Description
This branch builds on the previous branches for working with relation ids: -r specifies the relation id to lookup a relation hook context for relation-set, relation-get, and relation-list. In addition, there are some bug fixes for relation-ids around making relation name optional.
Related branches
lp://staging/~jimbaker/pyjuju/relation-id-option
- Kapil Thangavelu (community): Approve
- Jim Baker: Pending requested
-
Diff: 593 lines (+200/-48)10 files modifiedjuju/agents/unit.py (+1/-0)
juju/hooks/cli.py (+2/-1)
juju/hooks/commands.py (+14/-1)
juju/hooks/executor.py (+7/-0)
juju/hooks/invoker.py (+3/-2)
juju/hooks/protocol.py (+57/-27)
juju/hooks/tests/test_cli.py (+3/-5)
juju/hooks/tests/test_communications.py (+20/-10)
juju/hooks/tests/test_invoker.py (+82/-2)
juju/state/hook.py (+11/-0)
Changed in juju: | |
assignee: | nobody → Jim Baker (jimbaker) |
milestone: | none → honolulu |
status: | New → In Progress |
Changed in juju: | |
milestone: | honolulu → florence |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.