)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16277,"name":"Pradeep Kumar Singh","email":"ps4openstack@gmail.com","username":"pradeep_singh"},"change_message_id":"8ca9954054f63d5a0f2aae11883515da5348e795","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Support the command \"zun top\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The BP adds \"zun top\" which can display progress in container."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: I0e41193c242270e38f4f0bf745264477f86d1ab0"},{"line_number":12,"context_line":"Implements: blueprint support-zun-top"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"5a3905b3_0762b716","line":9,"range":{"start_line":9,"start_character":40,"end_line":9,"end_character":48},"updated":"2017-01-25 04:19:29.000000000","message":"processes?","commit_id":"d0c3ec8287749337f69a74537b92c8d84727256b"}],"zunclient/osc/v1/containers.py":[{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"bd6509cf65c83a45d1300197facfc7ffa72bf8b7","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        container \u003d parsed_args.container"},{"line_number":567,"context_line":"        ps \u003d \u0027 \u0027.join(parsed_args.ps_args)"},{"line_number":568,"context_line":"        output \u003d client.containers.top(container, ps)"},{"line_number":569,"context_line":"        for titles in output[\u0027Titles\u0027]:"},{"line_number":570,"context_line":"            print(\"%-20s\") % titles,"},{"line_number":571,"context_line":"        for process in output[\u0027Processes\u0027]:"},{"line_number":572,"context_line":"            print(\"\")"},{"line_number":573,"context_line":"            for info in process:"},{"line_number":574,"context_line":"                print(\"%-20s\") % info,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa31d9ce_f44ca19f","line":574,"range":{"start_line":569,"start_character":0,"end_line":574,"end_character":38},"updated":"2017-02-15 21:05:29.000000000","message":"It seems it is better to leverage PrettyTable to print this, but this can be addressed by a follow-up patch.","commit_id":"bf954a5aa4e9672e4fea46ab0422fd6b0757bb1a"}],"zunclient/v1/containers_shell.py":[{"author":{"_account_id":20858,"name":"prameswar","email":"engg.pram1@gmail.com","username":"prameswar"},"change_message_id":"83b77ce5aa4be1c635c63782e414180d30dece83","unresolved":false,"context_lines":[{"line_number":434,"context_line":"           help\u003d\u0027ID or name of the container to display progesses.\u0027)"},{"line_number":435,"context_line":"@utils.arg(\u0027--ps\u0027,"},{"line_number":436,"context_line":"           metavar\u003d\u0027\u003cps\u003e\u0027,"},{"line_number":437,"context_line":"           help\u003d\u0027ps(optional).\u0027)"},{"line_number":438,"context_line":"def do_top(cs, args):"},{"line_number":439,"context_line":"    \"\"\"Execute command in a container.\"\"\""},{"line_number":440,"context_line":"    output \u003d cs.containers.top(args.container, args.ps)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a3905b3_bb4973b9","line":437,"range":{"start_line":437,"start_character":17,"end_line":437,"end_character":30},"updated":"2017-01-23 09:25:17.000000000","message":"It will be better to improve help message and add what type of input need to pass.","commit_id":"aa295fd7ed25d3a7ff887c24f8563e105155ab0c"},{"author":{"_account_id":20858,"name":"prameswar","email":"engg.pram1@gmail.com","username":"prameswar"},"change_message_id":"83b77ce5aa4be1c635c63782e414180d30dece83","unresolved":false,"context_lines":[{"line_number":436,"context_line":"           metavar\u003d\u0027\u003cps\u003e\u0027,"},{"line_number":437,"context_line":"           help\u003d\u0027ps(optional).\u0027)"},{"line_number":438,"context_line":"def do_top(cs, args):"},{"line_number":439,"context_line":"    \"\"\"Execute command in a container.\"\"\""},{"line_number":440,"context_line":"    output \u003d cs.containers.top(args.container, args.ps)"},{"line_number":441,"context_line":"    print(json.dumps(output))"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a3905b3_3b44a319","line":439,"range":{"start_line":439,"start_character":7,"end_line":439,"end_character":38},"updated":"2017-01-23 09:25:17.000000000","message":"I think, it should be like \"Display the running processes of a container\".","commit_id":"aa295fd7ed25d3a7ff887c24f8563e105155ab0c"},{"author":{"_account_id":20858,"name":"prameswar","email":"engg.pram1@gmail.com","username":"prameswar"},"change_message_id":"83b77ce5aa4be1c635c63782e414180d30dece83","unresolved":false,"context_lines":[{"line_number":438,"context_line":"def do_top(cs, args):"},{"line_number":439,"context_line":"    \"\"\"Execute command in a container.\"\"\""},{"line_number":440,"context_line":"    output \u003d cs.containers.top(args.container, args.ps)"},{"line_number":441,"context_line":"    print(json.dumps(output))"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a3905b3_76c3a289","line":441,"range":{"start_line":441,"start_character":4,"end_line":441,"end_character":29},"updated":"2017-01-23 09:25:17.000000000","message":"If possible in this patch then improve output format. \n\nzun top 855d48ad-1324-4ab2-ac06-650b51cf8051\n{\"Processes\": [[\"root\", \"19729\", \"19717\", \"0\", \"08:57\", \"?\", \"00:00:00\", \"sleep 22222222\"]], \"Titles\": [\"UID\", \"PID\", \"PPID\", \"C\", \"STIME\", \"TTY\", \"TIME\", \"CMD\"]}\n\nIt is printing Title parts at end :)","commit_id":"aa295fd7ed25d3a7ff887c24f8563e105155ab0c"},{"author":{"_account_id":16277,"name":"Pradeep Kumar Singh","email":"ps4openstack@gmail.com","username":"pradeep_singh"},"change_message_id":"8ca9954054f63d5a0f2aae11883515da5348e795","unresolved":false,"context_lines":[{"line_number":441,"context_line":"def do_top(cs, args):"},{"line_number":442,"context_line":"    \"\"\"Displays the running processes of a container.\"\"\""},{"line_number":443,"context_line":"    output \u003d cs.containers.top(args.container, \u0027 \u0027.join(args.ps))"},{"line_number":444,"context_line":"    print(json.dumps(output[\u0027Titles\u0027]))"},{"line_number":445,"context_line":"    print(json.dumps(output[\u0027Processes\u0027]))"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a3905b3_a75ac34e","line":444,"updated":"2017-01-25 04:19:29.000000000","message":"Instead of dumping to json, i would suggest please write some formatter  method for formatting the output for this command?","commit_id":"d0c3ec8287749337f69a74537b92c8d84727256b"}]}
