[
https://issues.apache.org/jira/browse/HDDS-5824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siyao Meng updated HDDS-5824:
-----------------------------
Fix Version/s: 1.3.0
Release Note: `ozone sh volume list` / `ozone sh bucket list` / `ozone sh
key list` output is now a valid JSON array. Previously it prints a group of
valid JSON objects one after another, but not a valid JSON object as a whole.
This change could 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` / `ozone sh bucket list` / `ozone sh key list`
output is now a valid JSON array. Previously it prints a group of valid JSON
objects one after another, but 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")'`)
Resolution: Fixed
Status: Resolved (was: Patch Available)
> `ozone sh volume/bucket/key 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
> Fix For: 1.3.0
>
>
> 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]