)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"58e55a36c70edc338cf9ea6bccf604557a7d5d39","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Check if the return net list is empty before deleting it"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"It may crash kuryr without checking the return value. Also add"},{"line_number":10,"context_line":"the test case and special unit test action in tox."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I6cca7018c2690329d5ece339086b7b51472a6333"},{"line_number":13,"context_line":"Closes-bug: #1532082"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"da6ed579_7c6d73cb","line":10,"updated":"2016-01-18 07:21:32.000000000","message":"Please also add\n\n Also enable Unit test in tox for Python 2.7","commit_id":"f99d8efe9c920e32e6d3bb8343b4903fa1606821"}],"kuryr/controllers.py":[{"author":{"_account_id":10151,"name":"kexiaodong","email":"kexiaodong@huawei.com","username":"kexiaodong"},"change_message_id":"6a3326f700810615b70f7e1c50751706c098db76","unresolved":false,"context_lines":[{"line_number":511,"context_line":"            except n_exceptions.Conflict as ex:"},{"line_number":512,"context_line":"                app.logger.error(\"Subnet, {0}, is in use. \""},{"line_number":513,"context_line":"                                 \"Network cant be deleted.\""},{"line_number":514,"context_line":"                                 .format(subnet[\u0027id\u0027]))"},{"line_number":515,"context_line":"                raise"},{"line_number":516,"context_line":"            except n_exceptions.NeutronClientException as ex:"},{"line_number":517,"context_line":"                app.logger.error(\"Error happened during deleting a \""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_cb7ebaae","line":514,"range":{"start_line":514,"start_character":32,"end_line":514,"end_character":55},"updated":"2016-01-10 12:03:33.000000000","message":"Personally, I don\u0027t think it is need to change here.","commit_id":"44b527ecd2f9942dc2f96705b03b93a0d8def1ad"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"1325b3ef7a50f8496fe1cd11df3d639a83159854","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            .format(\u0027, \u0027.join([\u0027{0}\u003d{1}\u0027.format(k, v)"},{"line_number":151,"context_line":"                               for k, v in attrs.items()])))"},{"line_number":152,"context_line":"    elif len(networks.get(\u0027networks\u0027, [])) \u003d\u003d 0:  # no matched networks"},{"line_number":153,"context_line":"        raise n_exceptions.NotFound("},{"line_number":154,"context_line":"            \"No Neutron networks exist for the params {0}\""},{"line_number":155,"context_line":"            .format(\u0027, \u0027.join([\u0027{0}\u003d{1}\u0027.format(k, v)"},{"line_number":156,"context_line":"                               for k, v in attrs.items()])))"}],"source_content_type":"text/x-python","patch_set":6,"id":"da6ed579_54bbbfc4","line":153,"updated":"2016-01-12 11:29:42.000000000","message":"maybe I am missing something, but I think  no valid response will be returned on network_delete REST call is no network is found. I am not sure it should raise an exception from the docker perspective. The network is gone, and it is what was requested. The internal logging of the missing network is neutron is another story.","commit_id":"395102f6b866191533c2ef0e29473a9bf49ae8c1"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bf35c4d61d07d9b3ebdb3698c5de7442909253c7","unresolved":false,"context_lines":[{"line_number":483,"context_line":""},{"line_number":484,"context_line":"    neutron_network_name \u003d json_data[\u0027NetworkID\u0027]"},{"line_number":485,"context_line":"    try:"},{"line_number":486,"context_line":"        filtered_networks \u003d _get_networks_by_attrs(name\u003dneutron_network_name)"},{"line_number":487,"context_line":"    except n_exceptions.NeutronClientException as ex:"},{"line_number":488,"context_line":"        app.logger.error(\"Error happened during listing \""},{"line_number":489,"context_line":"                         \"Neutron networks: {0}\".format(ex))"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a68dd71_8636ffe5","line":486,"range":{"start_line":486,"start_character":28,"end_line":486,"end_character":50},"updated":"2016-01-26 10:24:32.000000000","message":"isn\u0027t it simpler to make _get_networks_by_attrs raise an exception?","commit_id":"0b178f71359fd2774bece5834e433269c1ee8231"},{"author":{"_account_id":11208,"name":"Baohua Yang","email":"baohua@linux.vnet.ibm.com","username":"yangbaohua"},"change_message_id":"64bc70ca68a12dab996875af62060ccb9ed6828d","unresolved":false,"context_lines":[{"line_number":483,"context_line":""},{"line_number":484,"context_line":"    neutron_network_name \u003d json_data[\u0027NetworkID\u0027]"},{"line_number":485,"context_line":"    try:"},{"line_number":486,"context_line":"        filtered_networks \u003d _get_networks_by_attrs(name\u003dneutron_network_name)"},{"line_number":487,"context_line":"    except n_exceptions.NeutronClientException as ex:"},{"line_number":488,"context_line":"        app.logger.error(\"Error happened during listing \""},{"line_number":489,"context_line":"                         \"Neutron networks: {0}\".format(ex))"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a68dd71_a6b46382","line":486,"range":{"start_line":486,"start_character":28,"end_line":486,"end_character":50},"in_reply_to":"9a68dd71_8636ffe5","updated":"2016-01-26 10:38:26.000000000","message":"Thanks, but I don\u0027t think so.\nI have considered this idea previously.\nBut they have different meanings from each other.\nThe _get_networks_by_attr function should return empty list when no finding valid networks, instead of throwing exception.\nSo I suggest we check the empty list outside for specifically handling this case.\nHow do you think?\nThanks!","commit_id":"0b178f71359fd2774bece5834e433269c1ee8231"},{"author":{"_account_id":11208,"name":"Baohua Yang","email":"baohua@linux.vnet.ibm.com","username":"yangbaohua"},"change_message_id":"227265d00bfd30a55663eb9c107d4cb58f31938a","unresolved":false,"context_lines":[{"line_number":483,"context_line":""},{"line_number":484,"context_line":"    neutron_network_name \u003d json_data[\u0027NetworkID\u0027]"},{"line_number":485,"context_line":"    try:"},{"line_number":486,"context_line":"        filtered_networks \u003d _get_networks_by_attrs(name\u003dneutron_network_name)"},{"line_number":487,"context_line":"    except n_exceptions.NeutronClientException as ex:"},{"line_number":488,"context_line":"        app.logger.error(\"Error happened during listing \""},{"line_number":489,"context_line":"                         \"Neutron networks: {0}\".format(ex))"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a68dd71_72f7d3f5","line":486,"range":{"start_line":486,"start_character":28,"end_line":486,"end_character":50},"in_reply_to":"9a68dd71_a162df14","updated":"2016-01-27 05:15:59.000000000","message":"Thanks for the comments.\nThere are four usages of the function, inside  network_driver_delete_network(), network_driver_create_endpoint(),\nnetwork_driver_join(),\nnetwork_driver_leave().\n\nThe other usages all check whether the return value is empty outside. So I think this patch follows the style.\nThanks!","commit_id":"0b178f71359fd2774bece5834e433269c1ee8231"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"71958ee6af730f973ac85c23a347cf17cf9048e3","unresolved":false,"context_lines":[{"line_number":483,"context_line":""},{"line_number":484,"context_line":"    neutron_network_name \u003d json_data[\u0027NetworkID\u0027]"},{"line_number":485,"context_line":"    try:"},{"line_number":486,"context_line":"        filtered_networks \u003d _get_networks_by_attrs(name\u003dneutron_network_name)"},{"line_number":487,"context_line":"    except n_exceptions.NeutronClientException as ex:"},{"line_number":488,"context_line":"        app.logger.error(\"Error happened during listing \""},{"line_number":489,"context_line":"                         \"Neutron networks: {0}\".format(ex))"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a68dd71_a162df14","line":486,"range":{"start_line":486,"start_character":28,"end_line":486,"end_character":50},"in_reply_to":"9a68dd71_a6b46382","updated":"2016-01-27 03:26:48.000000000","message":"really?\nall other users of _get_networks_by_attrs\nseem to return an error if the result is empty.\ncan\u0027t it be done via default_exceptions?","commit_id":"0b178f71359fd2774bece5834e433269c1ee8231"}],"tox.ini":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e7194133751aa34a0421b97c48cbb0fe899ef026","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"[testenv:unit]"},{"line_number":21,"context_line":"basepython \u003d python2.7"},{"line_number":22,"context_line":"setenv \u003d OS_TEST_PATH\u003d./kuryr/tests/unit"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[testenv:fullstack]"},{"line_number":25,"context_line":"basepython \u003d python2.7"}],"source_content_type":"text/x-properties","patch_set":8,"id":"9a68dd71_a1245260","line":22,"updated":"2016-01-26 09:24:45.000000000","message":"why is this necessary?","commit_id":"861f83426e8e9b38462ff5060900f06125265795"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"37dec5e750456b112ef2ee5796451dbd0968be5d","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"[testenv:unit]"},{"line_number":21,"context_line":"basepython \u003d python2.7"},{"line_number":22,"context_line":"setenv \u003d OS_TEST_PATH\u003d./kuryr/tests/unit"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[testenv:fullstack]"},{"line_number":25,"context_line":"basepython \u003d python2.7"}],"source_content_type":"text/x-properties","patch_set":8,"id":"9a68dd71_a1421267","line":22,"in_reply_to":"9a68dd71_81cd8e5f","updated":"2016-01-26 09:33:39.000000000","message":"is it more helpful than \"tox -e py27\" ?\n\nanyway it\u0027s better to separate unrelated changes.","commit_id":"861f83426e8e9b38462ff5060900f06125265795"},{"author":{"_account_id":11208,"name":"Baohua Yang","email":"baohua@linux.vnet.ibm.com","username":"yangbaohua"},"change_message_id":"07074067670386eb6769efda54af3380db0e38ba","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"[testenv:unit]"},{"line_number":21,"context_line":"basepython \u003d python2.7"},{"line_number":22,"context_line":"setenv \u003d OS_TEST_PATH\u003d./kuryr/tests/unit"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[testenv:fullstack]"},{"line_number":25,"context_line":"basepython \u003d python2.7"}],"source_content_type":"text/x-properties","patch_set":8,"id":"9a68dd71_81cd8e5f","line":22,"in_reply_to":"9a68dd71_a1245260","updated":"2016-01-26 09:28:10.000000000","message":"This will help trigger the unit testing.\nIt\u0027s not that related, and I can split it into separate patch if necessary.","commit_id":"861f83426e8e9b38462ff5060900f06125265795"},{"author":{"_account_id":11208,"name":"Baohua Yang","email":"baohua@linux.vnet.ibm.com","username":"yangbaohua"},"change_message_id":"8e8104e6c8f3d999fefca015b0ffd243fdc53bcb","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"[testenv:unit]"},{"line_number":21,"context_line":"basepython \u003d python2.7"},{"line_number":22,"context_line":"setenv \u003d OS_TEST_PATH\u003d./kuryr/tests/unit"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[testenv:fullstack]"},{"line_number":25,"context_line":"basepython \u003d python2.7"}],"source_content_type":"text/x-properties","patch_set":8,"id":"9a68dd71_81082e2f","line":22,"in_reply_to":"9a68dd71_a1421267","updated":"2016-01-26 09:34:46.000000000","message":"yes, sometime it\u0027s more convenient.\nI will split it.\nThanks!","commit_id":"861f83426e8e9b38462ff5060900f06125265795"}]}
