juju run-action --wait return code should (optionally) reflect the success/failure of the action
Bug #1892887 reported by
James Troup
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
juju run-action should have a way for its return code to reflect the success or failure of the action itself. Arguably (and IMO) this should be the default but it could instead be done by means of an option to run-action.
This (combined with --wait) would allow one to chain together actions in a powerful and idiomatically UNIX way, e.g.
juju run-action --wait $UNIT pause && juju run-action --wait $UNIT upgrade && juju run-action --wait $UNIT upgrade
Changed in juju: | |
milestone: | 2.9-beta1 → 2.9-rc1 |
Changed in juju: | |
importance: | Medium → High |
Changed in juju: | |
milestone: | 3.0.0 → 3.0.1 |
Changed in juju: | |
milestone: | 3.0.1 → 3.0.2 |
Changed in juju: | |
milestone: | 3.0.2 → 3.0.3 |
To post a comment you must log in.
run-action currently creates an "operation" which is the parent for the individual tasks, each task being an invocation of an action on a unit.
We could special case the situation where there's only one target and hence one task.