Tejaskriya opened a new pull request, #5038: URL: https://github.com/apache/ozone/pull/5038
## What changes were proposed in this pull request? Add the option for the command `ozone admin scm roles` to output as JSON ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-6668 ## How was this patch tested? New robot test. Also verified the JSON out using a docker-compose cluster: ``` bash-4.2$ ozone admin scm roles --json { "scm2" : { "address" : "9894", "raftPeerRole" : "FOLLOWER", "ID" : "55acae44-2881-48ef-ab47-0a3301e260c5", "InetAddress" : "172.19.0.6" }, "scm1" : { "address" : "9894", "raftPeerRole" : "LEADER", "ID" : "4f307fcc-e256-4bbd-83e4-6786968d1936", "InetAddress" : "172.19.0.5" }, "scm3" : { "address" : "9894", "raftPeerRole" : "FOLLOWER", "ID" : "4bd6dfb4-d3fc-4a3b-8e65-99ffca3c8096", "InetAddress" : "172.19.0.3" } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
