[ 
https://issues.apache.org/jira/browse/HDDS-5824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Siyao Meng updated HDDS-5824:
-----------------------------
    Release Note: `ozone sh volume list` output is now a valid JSON array 
(previously a group of valid JSON objects printed one after another, not a 
valid JSON object as a whole). This might break some existing scripts. Simple 
fix: If you are using `jq`, to fix the script you just need to append `[]` 
after the first `.`. e.g. change `jq '. | select(.name=="vol1")'` into `jq '.[] 
| select(.name=="vol1")'`  (was: `ozone sh volume list` output is now a valid 
JSON array (previously a group of valid JSON maps, not a valid JSON object as a 
whole). This might break some existing scripts. Simple fix: If you are using 
`jq`, to fix the script you just need to append `[]` after the first `.`. e.g. 
change `jq '. | select(.name=="vol1")'` into `jq '.[] | select(.name=="vol1")'`)

> `ozone sh volume list` should print valid JSON array
> ----------------------------------------------------
>
>                 Key: HDDS-5824
>                 URL: https://issues.apache.org/jira/browse/HDDS-5824
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>              Labels: pull-request-available
>
> Right now the output is just a bunch of separate JSONs (not a valid one as a 
> whole).
> This jira simply fixes it by grouping them into one JSON array. Should make 
> it easier to be parsed by {{jq}} and similar utilies.
> CC [~erose]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to