)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"aa1b2bd956bb37fb2925385dbe72a836a92aee16","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add a JSON option to the client"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a son option to list and show commands to return the JSON response body fro; the Ironic API without formatting it."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ic21c8ce1cc211816e309b4a00b6e89a0a8bf6a9d"},{"line_number":12,"context_line":"Closes-Bug: #1436440"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bae84128_61977048","line":9,"range":{"start_line":9,"start_character":67,"end_line":9,"end_character":72},"updated":"2016-02-23 13:19:57.000000000","message":"The commit message\u0027s lines should be wrapped to \u003c70 chars.","commit_id":"c92a732696d6fca9f1564794c36c6174b2989010"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"aa1b2bd956bb37fb2925385dbe72a836a92aee16","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add a JSON option to the client"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a son option to list and show commands to return the JSON response body fro; the Ironic API without formatting it."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ic21c8ce1cc211816e309b4a00b6e89a0a8bf6a9d"},{"line_number":12,"context_line":"Closes-Bug: #1436440"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bae84128_01ae6497","line":9,"range":{"start_line":9,"start_character":5,"end_line":9,"end_character":10},"updated":"2016-02-23 13:19:57.000000000","message":"nit: s/son/json/","commit_id":"c92a732696d6fca9f1564794c36c6174b2989010"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"aa1b2bd956bb37fb2925385dbe72a836a92aee16","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add a JSON option to the client"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a son option to list and show commands to return the JSON response body fro; the Ironic API without formatting it."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ic21c8ce1cc211816e309b4a00b6e89a0a8bf6a9d"},{"line_number":12,"context_line":"Closes-Bug: #1436440"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bae84128_e189c027","line":9,"range":{"start_line":9,"start_character":76,"end_line":9,"end_character":80},"updated":"2016-02-23 13:19:57.000000000","message":"s/fro;/from/","commit_id":"c92a732696d6fca9f1564794c36c6174b2989010"}],"ironicclient/common/cliutils.py":[{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"cb8eee1441efda59d391629dab840b2755a4ae6d","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    :param json: print the list as JSON instead of table"},{"line_number":154,"context_line":"    \"\"\""},{"line_number":155,"context_line":"    if json:"},{"line_number":156,"context_line":"        print([o._info for o in objs])"},{"line_number":157,"context_line":"        return"},{"line_number":158,"context_line":"    formatters \u003d formatters or {}"},{"line_number":159,"context_line":"    mixed_case_fields \u003d mixed_case_fields or []"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_5f24800b","line":156,"updated":"2016-02-24 13:32:45.000000000","message":"This prints the python representation of the list, which is not actually valid JSON:\n\n    $ ironic node-list --json\n    [{u\u0027instance_uuid\u0027: None, u\u0027maintenance\u0027: False, ...\n\nI think we\u0027ll want print(json.dumps([...])) here.","commit_id":"c92a732696d6fca9f1564794c36c6174b2989010"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"cb8eee1441efda59d391629dab840b2755a4ae6d","unresolved":false,"context_lines":[{"line_number":204,"context_line":"    :param json: print the list as JSON instead of table"},{"line_number":205,"context_line":"    \"\"\""},{"line_number":206,"context_line":"    if json:"},{"line_number":207,"context_line":"        print(dct)"},{"line_number":208,"context_line":"        return"},{"line_number":209,"context_line":"    pt \u003d prettytable.PrettyTable([dict_property, dict_value])"},{"line_number":210,"context_line":"    pt.align \u003d \u0027l\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_bf1f8cb5","line":207,"updated":"2016-02-24 13:32:45.000000000","message":"Ditto:\n\n    $ ironic node-show d0ff8ec7-2316-43e6-9103-4a71c4acfa81 --json\n    {\u0027target_power_state\u0027: None, ...","commit_id":"c92a732696d6fca9f1564794c36c6174b2989010"}],"ironicclient/tests/unit/common/test_cliutils.py":[{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"dec7ce79c31bcae2e528f60a594f6cd17502f953","unresolved":false,"context_lines":[{"line_number":597,"context_line":"        out \u003d sys.stdout.getvalue()"},{"line_number":598,"context_line":"        sys.stdout.close()"},{"line_number":599,"context_line":"        sys.stdout \u003d orig"},{"line_number":600,"context_line":"        expected \u003d [\u0027\u0027\u0027\\"},{"line_number":601,"context_line":"[{\"name\": \"k1\", \"value\": 1}]"},{"line_number":602,"context_line":"\u0027\u0027\u0027, \u0027\u0027\u0027\\"},{"line_number":603,"context_line":"[{\"value\": 1, \"name\": \"k1\"}]"}],"source_content_type":"text/x-python","patch_set":3,"id":"7af24918_515dc945","line":600,"updated":"2016-03-03 17:21:46.000000000","message":"I think it would be better here to test that json.loads(out) \u003d\u003d FakeResult._info; I think that captures the intent better, and avoids combinatorial explosion of possible key-orderings or fiddly details of JSON string encoding. If you care about the newlines at the beginning and end, you could test for those separately. What do you think?","commit_id":"fda185486588d085900e87486e678c6a9a3eb9c3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e42f739e59cedcf427c1c5efb5258c9c0f44d11f","unresolved":false,"context_lines":[{"line_number":597,"context_line":"        out \u003d sys.stdout.getvalue()"},{"line_number":598,"context_line":"        sys.stdout.close()"},{"line_number":599,"context_line":"        sys.stdout \u003d orig"},{"line_number":600,"context_line":"        expected \u003d [\u0027\u0027\u0027\\"},{"line_number":601,"context_line":"[{\"name\": \"k1\", \"value\": 1}]"},{"line_number":602,"context_line":"\u0027\u0027\u0027, \u0027\u0027\u0027\\"},{"line_number":603,"context_line":"[{\"value\": 1, \"name\": \"k1\"}]"}],"source_content_type":"text/x-python","patch_set":3,"id":"7af24918_ccdbfb7a","line":600,"in_reply_to":"7af24918_515dc945","updated":"2016-03-03 18:03:27.000000000","message":"+1, though I\u0027m fine with doing that in a follow up patch","commit_id":"fda185486588d085900e87486e678c6a9a3eb9c3"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"dec7ce79c31bcae2e528f60a594f6cd17502f953","unresolved":false,"context_lines":[{"line_number":628,"context_line":"        out \u003d sys.stdout.getvalue()"},{"line_number":629,"context_line":"        sys.stdout.close()"},{"line_number":630,"context_line":"        sys.stdout \u003d orig"},{"line_number":631,"context_line":"        expected \u003d [\u0027\u0027\u0027\\"},{"line_number":632,"context_line":"{\"K\": \"k\", \"Key\": \"Value\"}"},{"line_number":633,"context_line":"\u0027\u0027\u0027, \u0027\u0027\u0027\\"},{"line_number":634,"context_line":"{\"Key\": \"Value\", \"K\": \"k\"}"}],"source_content_type":"text/x-python","patch_set":3,"id":"7af24918_6c43ca42","line":631,"updated":"2016-03-03 17:21:46.000000000","message":"Same goes here.","commit_id":"fda185486588d085900e87486e678c6a9a3eb9c3"}],"ironicclient/tests/unit/v1/test_port_shell.py":[{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e42f739e59cedcf427c1c5efb5258c9c0f44d11f","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        args.port \u003d \u0027port_uuid\u0027"},{"line_number":43,"context_line":"        args.address \u003d False"},{"line_number":44,"context_line":"        args.fields \u003d None"},{"line_number":45,"context_line":"        args.json \u003d False"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        p_shell.do_port_show(client_mock, args)"},{"line_number":48,"context_line":"        client_mock.port.get.assert_called_once_with(\u0027port_uuid\u0027, fields\u003dNone)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7af24918_8c43b312","line":45,"updated":"2016-03-03 18:03:27.000000000","message":"Seems odd to me that we need all of these... but I\u0027ve confirmed we do. Turns out a MagicMock object is truthy, so if we don\u0027t add this it will try to format as json.","commit_id":"fda185486588d085900e87486e678c6a9a3eb9c3"}],"ironicclient/v1/driver_shell.py":[{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"cb8eee1441efda59d391629dab840b2755a4ae6d","unresolved":false,"context_lines":[{"line_number":66,"context_line":"              help\u003d(\u0027Wrap the output to a specified length. \u0027"},{"line_number":67,"context_line":"                    \u0027Positive number can realize wrap functionality. \u0027"},{"line_number":68,"context_line":"                    \u00270 is default for disabled.\u0027))"},{"line_number":69,"context_line":"def do_driver_properties(cc, args):"},{"line_number":70,"context_line":"    \"\"\"Get properties of a driver.\"\"\""},{"line_number":71,"context_line":"    properties \u003d cc.driver.properties(args.driver_name)"},{"line_number":72,"context_line":"    cliutils.print_dict("}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_7f050444","line":69,"updated":"2016-02-24 13:32:45.000000000","message":"Any reason not to add it to all methods?\n\nSimilarly, there must be a way we can add this to all commands without actually adding a decorator to all methods... maybe like we do with debug https://github.com/openstack/python-ironicclient/blob/master/ironicclient/shell.py#L117 ?","commit_id":"c92a732696d6fca9f1564794c36c6174b2989010"}]}
