juju show-action-status probably doesn't have the best ordering
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Trying to figure out if something succeeded or failed, I was running an action a few times and then checking 'show-action-
However, the output doesn't appear to be sorted in a fashion that is useful:
$ juju show-action-status
actions:
- action: ping
completed at: 2017-11-15 06:19:05
id: 476821b2-
status: completed
unit: netutils/0
- action: ping
completed at: 2017-11-15 06:23:13
id: 5d1e263b-
status: completed
unit: netutils/0
- action: ping
completed at: 2017-11-15 06:29:17
id: a1d5cde0-
status: completed
unit: netutils/0
- action: ping
completed at: 2017-11-15 06:20:21
id: cfa338ae-
status: failed
unit: netutils/0
That doesn't look to be the order that I requested them, nor the order that they completed in.
The last one requested is second from the end.
It looks like they are actually sorted by "id" but I think that doesn't actually mean anything to anyone. Its intentionally an *opaque* UUID.
I think sorting by time might make the most sense.
This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.