Actions in charm-microceph returns error message outside of results dict
$ juju run microceph/0 add-osd device-id=/dev/sdb --format json Running operation 27 with 1 task - task 28 on unit-microceph-0
Waiting for task 28... {"microceph/0":{"id":"28","message":"Error: failed to record disk: This \"disks\" entry already exists\n","results":{"return-code":0},"status":"failed","timing":{"completed":"2024-05-23 04:01:21 +0000 UTC","enqueued":"2024-05-23 04:01:20 +0000 UTC","started":"2024-05-23 04:01:20 +0000 UTC"},"unit":"microceph/0"}}
It will be useful if the message is part of results dict since libjuju get_action_output returns just the results section.
Actions in charm-microceph returns error message outside of results dict
$ juju run microceph/0 add-osd device-id=/dev/sdb --format json
Running operation 27 with 1 task
- task 28 on unit-microceph-0
Waiting for task 28... 0":{"id" :"28"," message" :"Error: failed to record disk: This \"disks\" entry already exists\ n","results" :{"return- code":0} ,"status" :"failed" ,"timing" :{"completed" :"2024- 05-23 04:01:21 +0000 UTC","enqueued" :"2024- 05-23 04:01:20 +0000 UTC","started" :"2024- 05-23 04:01:20 +0000 UTC"}," unit":" microceph/ 0"}}
{"microceph/
It will be useful if the message is part of results dict since libjuju get_action_output returns just the results section.