DescriptionExceptions for hook commands using relation id
AMP requires that all exceptions that are passed between the hook command (client) and unit agent (server) are registered, otherwise it will raise "twisted ERROR: Unhandled Error". This branch fixes this issue for exceptions introduced by the use of -r to specify a relation id. In addition for completeness, other tests were added around potential error cases.
This branch also resolves bug #1050592, which saw this issue in the use of relation-list with -r.
Note that these fixes continue the current practice that an error report is written to stderr ("Relation not found"), but the exit code of the hook command is still 0.
I have tested the branch with the the debug-charm attached to the bug, lp:~mew/+junk/debug-charm
https://code.launchpad.net/~jimbaker/juju/hook-command-error-cases/+merge/127188
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 1
|