{"action":"created","issue":{"url":"https://api.github.com/repos/heketi/heketi/issues/274","repository_url":"https://api.github.com/repos/heketi/heketi","labels_url":"https://api.github.com/repos/heketi/heketi/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/heketi/heketi/issues/274/comments","events_url":"https://api.github.com/repos/heketi/heketi/issues/274/events","html_url":"https://github.com/heketi/heketi/pull/274","id":147467620,"number":274,"title":"heketi-cli: Improve the readability of json output.","user":{"login":"humblec","id":5001742,"avatar_url":"https://avatars.githubusercontent.com/u/5001742?v=3","gravatar_id":"","url":"https://api.github.com/users/humblec","html_url":"https://github.com/humblec","followers_url":"https://api.github.com/users/humblec/followers","following_url":"https://api.github.com/users/humblec/following{/other_user}","gists_url":"https://api.github.com/users/humblec/gists{/gist_id}","starred_url":"https://api.github.com/users/humblec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humblec/subscriptions","organizations_url":"https://api.github.com/users/humblec/orgs","repos_url":"https://api.github.com/users/humblec/repos","events_url":"https://api.github.com/users/humblec/events{/privacy}","received_events_url":"https://api.github.com/users/humblec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-11T15:36:21Z","updated_at":"2016-04-11T18:46:36Z","closed_at":"2016-04-11T18:46:36Z","pull_request":{"url":"https://api.github.com/repos/heketi/heketi/pulls/274","html_url":"https://github.com/heketi/heketi/pull/274","diff_url":"https://github.com/heketi/heketi/pull/274.diff","patch_url":"https://github.com/heketi/heketi/pull/274.patch"},"body":"At present the json output is not readable by the admin\r\ndue to the missing intendation at field keys/values.\r\nThis patch fix the issue.\r\n\r\nFor ex: Before the patch:\r\n\r\n[hchiramm@dhcp35-111 go]$ ./heketi-cli -json cluster info 0b7c016bf02bab4a9d512b7ffb02923e\r\n{\"id\":\"0b7c016bf02bab4a9d512b7ffb02923e\",\"nodes\":[\"08e62b1586526b4a79a349d718010929\",\"75d1d22afb654ba90513706c2514aa00\",\"e4f4efa9c01200736d28a9addc82e41b\"],\"volumes\":[\"07509bb46b08f63f1431e71b5b41fd4e\",\"151b1105b5a50629601476e43de77320\",\"3360fdb87496f65368b4a365be43bb77\",\"3afa0197077b81fa1defd379180884cc\",\"3dddf25df5caeb0a4186abbf53b49b73\",\"5941981f2179bec6a07a23cc5799c5a0\",\"97fc07efde89204a6f7fe5ab60340ed3\",\"997603de2b3d00e0393752b6b1fe05be\",\"cf1f430a80bd6ca8ddf49156d7cc6270\",\"e69d8b61cd08aa1485765598266c8c1d\",\"f6d9fb88f722897219ee37def94b316a\"]}[hchiramm@dhcp35-111 go]$\r\n\r\nWith the patch:\r\n\r\n[hchiramm@dhcp35-111 go]]$./heketi-cli -json cluster info 0b7c016bf02bab4a9d512b7ffb02923e\r\n{\r\n   \"id\": \"0b7c016bf02bab4a9d512b7ffb02923e\",\r\n   \"nodes\": [\r\n      \"08e62b1586526b4a79a349d718010929\",\r\n      \"75d1d22afb654ba90513706c2514aa00\",\r\n      \"e4f4efa9c01200736d28a9addc82e41b\"\r\n   ],\r\n   \"volumes\": [\r\n      \"07509bb46b08f63f1431e71b5b41fd4e\",\r\n      \"151b1105b5a50629601476e43de77320\",\r\n      \"3360fdb87496f65368b4a365be43bb77\",\r\n      \"3afa0197077b81fa1defd379180884cc\",\r\n      \"3dddf25df5caeb0a4186abbf53b49b73\",\r\n      \"5941981f2179bec6a07a23cc5799c5a0\",\r\n      \"97fc07efde89204a6f7fe5ab60340ed3\",\r\n      \"997603de2b3d00e0393752b6b1fe05be\",\r\n      \"cf1f430a80bd6ca8ddf49156d7cc6270\",\r\n      \"e69d8b61cd08aa1485765598266c8c1d\",\r\n      \"f6d9fb88f722897219ee37def94b316a\"\r\n   ]\r\n}\r\n\r\nSigned-off-by: Humble Chirammal <hchiramm@redhat.com>"},"comment":{"url":"https://api.github.com/repos/heketi/heketi/issues/comments/208495054","html_url":"https://github.com/heketi/heketi/pull/274#issuecomment-208495054","issue_url":"https://api.github.com/repos/heketi/heketi/issues/274","id":208495054,"user":{"login":"lpabon","id":3880001,"avatar_url":"https://avatars.githubusercontent.com/u/3880001?v=3","gravatar_id":"","url":"https://api.github.com/users/lpabon","html_url":"https://github.com/lpabon","followers_url":"https://api.github.com/users/lpabon/followers","following_url":"https://api.github.com/users/lpabon/following{/other_user}","gists_url":"https://api.github.com/users/lpabon/gists{/gist_id}","starred_url":"https://api.github.com/users/lpabon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpabon/subscriptions","organizations_url":"https://api.github.com/users/lpabon/orgs","repos_url":"https://api.github.com/users/lpabon/repos","events_url":"https://api.github.com/users/lpabon/events{/privacy}","received_events_url":"https://api.github.com/users/lpabon/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T18:46:36Z","updated_at":"2016-04-11T18:46:36Z","body":"JSON out is supposed to be consumed by other programs, not humans.  The human view is default to using the command without the -json switch.\r\n\r\nThank you for the work, but this change is not needed."}}