)]}'
{"openstack_dashboard/dashboards/admin/instances/tests.py":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"1bd35b6c5053ecd72173aba3e58dc838fa90a717","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        # Since error messages produced for each instance are identical,"},{"line_number":143,"context_line":"        # there will be only two error messages for all instances"},{"line_number":144,"context_line":"        # (messages de-duplication)."},{"line_number":145,"context_line":"        self.assertMessageCount(res, error\u003d2)"},{"line_number":146,"context_line":"        self.assertItemsEqual(instances, servers)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    @test.create_stubs({"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba2be162_0a6b891f","line":145,"updated":"2017-03-01 13:33:30.000000000","message":"Whats the reason for this change?","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":23757,"name":"Mateusz Kowalski","email":"mko@redhat.com","username":"makowals"},"change_message_id":"2e9c14730ed24d3a9fe1a274abddcf39b650c313","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        # Since error messages produced for each instance are identical,"},{"line_number":143,"context_line":"        # there will be only two error messages for all instances"},{"line_number":144,"context_line":"        # (messages de-duplication)."},{"line_number":145,"context_line":"        self.assertMessageCount(res, error\u003d2)"},{"line_number":146,"context_line":"        self.assertItemsEqual(instances, servers)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    @test.create_stubs({"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a30ddce_40cef42e","line":145,"in_reply_to":"ba2be162_0a6b891f","updated":"2017-03-09 13:30:52.000000000","message":"There is a bug somewhere before (to be addressed as another patch) which causes this test to run incorrectly. We were discussing this on IRC so let me know how deeply should we go into this in this particular change.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"}],"openstack_dashboard/dashboards/admin/instances/views.py":[{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"402bea7b618f1dc0d907e05b83f411a605bffced","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"da36d5c6_30ddf20e","line":152,"updated":"2017-02-22 00:56:51.000000000","message":"I don\u0027t think the return is needed after exceptions.handle.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"0a8cebb45a3c66dca557683a302be18bc27836d2","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a1ff146_8bbebffd","line":152,"in_reply_to":"9a30ddce_80b9cc7b","updated":"2017-03-15 00:20:22.000000000","message":"Mateusz and Rob, thanks for the clarification.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":23757,"name":"Mateusz Kowalski","email":"mko@redhat.com","username":"makowals"},"change_message_id":"2e9c14730ed24d3a9fe1a274abddcf39b650c313","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a30ddce_80b9cc7b","line":152,"in_reply_to":"ba2be162_7c4db371","updated":"2017-03-09 13:30:52.000000000","message":"Ying Zuo, could you please explain your -1 a bit more? The exception is not reraised in here, so I don\u0027t think there is any other argument I can use.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":15209,"name":"Lucas Xu","email":"hanxu@redhat.com","username":"xuh"},"change_message_id":"b8815121b805059c95991a332c4717595b15a0df","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"da36d5c6_f484c10b","line":152,"in_reply_to":"da36d5c6_2a58bb55","updated":"2017-02-24 16:16:40.000000000","message":"After catching the \"Exception\", what you want is to stop executing this function imo. That\u0027s why a return needed here. I am a bit confused why calls `api.network.servers_update_addresses` here though.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":23757,"name":"Mateusz Kowalski","email":"mko@redhat.com","username":"makowals"},"change_message_id":"6222230f048d06dc5aa868fef87067d39c03ccc9","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"da36d5c6_3655e51c","line":152,"in_reply_to":"da36d5c6_30ddf20e","updated":"2017-02-22 07:43:54.000000000","message":"It is, otherwise execution continues and the next line is api.network.servers_update_addresses(). We don\u0027t want to call it in case api.nova.server_list explodes, that\u0027s why return.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"320b8158e9fbd8eca4fbc92b1384c7047159579d","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"da36d5c6_b3ab91d5","line":152,"in_reply_to":"da36d5c6_3655e51c","updated":"2017-02-22 17:10:39.000000000","message":"six.reraise is executed at the end of exceptions.handle so I don\u0027t think anything after exceptions.handle will be executed.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":23757,"name":"Mateusz Kowalski","email":"mko@redhat.com","username":"makowals"},"change_message_id":"17761557db6fc46826cfbcd9e9dcc889891f8a3d","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"da36d5c6_2a58bb55","line":152,"in_reply_to":"da36d5c6_b3ab91d5","updated":"2017-02-24 09:24:48.000000000","message":"I would expect it to behave exactly in a way you described, but without this \"return\" test behaviour is as in the snippet -- http://paste.openstack.org/raw/600351/","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"1bd35b6c5053ecd72173aba3e58dc838fa90a717","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                  _(\u0027Unable to retrieve instance list.\u0027))"},{"line_number":150,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":151,"context_line":"                # don\u0027t call api.network"},{"line_number":152,"context_line":"                return"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            try:"},{"line_number":155,"context_line":"                api.network.servers_update_addresses(self.request, instances,"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba2be162_7c4db371","line":152,"in_reply_to":"da36d5c6_f484c10b","updated":"2017-03-01 13:33:30.000000000","message":"Yeah, it\u0027ll never be reraised because of the message.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"}],"openstack_dashboard/dashboards/project/instances/views.py":[{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"402bea7b618f1dc0d907e05b83f411a605bffced","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                                  _(\u0027Unable to retrieve instances.\u0027))"},{"line_number":86,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":87,"context_line":"                # don\u0027t call api.network"},{"line_number":88,"context_line":"                return"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"            try:"},{"line_number":91,"context_line":"                api.network.servers_update_addresses(self.request, instances)"}],"source_content_type":"text/x-python","patch_set":14,"id":"da36d5c6_7005aa78","line":88,"updated":"2017-02-22 00:56:51.000000000","message":"I don\u0027t think the return is needed after exceptions.handle.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":23757,"name":"Mateusz Kowalski","email":"mko@redhat.com","username":"makowals"},"change_message_id":"6222230f048d06dc5aa868fef87067d39c03ccc9","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                                  _(\u0027Unable to retrieve instances.\u0027))"},{"line_number":86,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":87,"context_line":"                # don\u0027t call api.network"},{"line_number":88,"context_line":"                return"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"            try:"},{"line_number":91,"context_line":"                api.network.servers_update_addresses(self.request, instances)"}],"source_content_type":"text/x-python","patch_set":14,"id":"da36d5c6_b63f15d5","line":88,"in_reply_to":"da36d5c6_7005aa78","updated":"2017-02-22 07:43:54.000000000","message":"It is, otherwise execution continues and the next line is api.network.servers_update_addresses(). We don\u0027t want to call it in case api.nova.server_list explodes, that\u0027s why return.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"},{"author":{"_account_id":16251,"name":"Stefan Paetow","email":"stefan.paetow@jisc.ac.uk","username":"spaetow"},"change_message_id":"de6f49e4e341cd3b7bf02d4c038a192f88513d82","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                                  _(\u0027Unable to retrieve instances.\u0027))"},{"line_number":86,"context_line":"                # In case of exception when calling nova.server_list"},{"line_number":87,"context_line":"                # don\u0027t call api.network"},{"line_number":88,"context_line":"                return"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"            try:"},{"line_number":91,"context_line":"                api.network.servers_update_addresses(self.request, instances)"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a1ff146_3e4064a5","line":88,"in_reply_to":"da36d5c6_b63f15d5","updated":"2017-03-16 11:31:43.000000000","message":"Mateusz is correct.","commit_id":"df194c8b4c25c6128f03a98fd0e628ba14b743ff"}]}
