weixin_39665847 2020-11-29 13:32 采纳率: 0%
浏览 0

Introduce user friendly action ids and capture action stdout and stderr

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

  • 写回答

5条回答 默认 最新

  • weixin_39665847 2020-11-29 13:32
    关注
    评论

报告相同问题?