Description of change
Enhance the local and remote runners in the uniter to capture stdout and stderr when running actions, and ensure this is set on the action result. The output is displayed when calling an action of showing action output. Also add the "plain" formatter as the default for show-operation in Juu v3.
The PR also introduces user friendly action ids instead of UUIDs.
QA steps
Deploy a charm with an action
$ juju call postgresql/1 hello who=world
Running Operation postgresql-6
outcome: success
result-map:
message: Hello world!
time-completed: Wed Sep 4 02:33:39 UTC 2019
Goodbye cruel world
This message goes to stderr
$ juju show-operation postgresql-6
outcome: success
result-map:
message: Hello world!
time-completed: Wed Sep 4 01:05:58 UTC 2019
Goodbye cruel world
This message goes to stderr
该提问来源于开源项目:juju/juju