)]}'
{"nova/network/linux_net.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"13fc4a47a8228258d170c10170120f92ff181de4","unresolved":false,"context_lines":[{"line_number":1702,"context_line":"def _exec_ebtables(*cmd, **kwargs):"},{"line_number":1703,"context_line":"    check_exit_code \u003d kwargs.pop(\u0027check_exit_code\u0027, True)"},{"line_number":1704,"context_line":""},{"line_number":1705,"context_line":"    # List of error strings to re-try."},{"line_number":1706,"context_line":"    retry_strings \u003d ["},{"line_number":1707,"context_line":"        \u0027Multiple ebtables programs\u0027"},{"line_number":1708,"context_line":"    ]"}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_7d02f770","line":1705,"updated":"2015-04-03 20:21:09.000000000","message":"nit: could pull this up to module level so it\u0027s not created each time this method is called.  I\u0027d make it a tuple in that case so it\u0027s immutable.","commit_id":"a9b2adbb139569b91a89f3f1d4115f7d370eaf58"},{"author":{"_account_id":1849,"name":"Joe Gordon","email":"joe.gordon0@gmail.com","username":"jogo"},"change_message_id":"cf33c197c42698ed919fdd364d2893ac19493f48","unresolved":false,"context_lines":[{"line_number":1702,"context_line":"def _exec_ebtables(*cmd, **kwargs):"},{"line_number":1703,"context_line":"    check_exit_code \u003d kwargs.pop(\u0027check_exit_code\u0027, True)"},{"line_number":1704,"context_line":""},{"line_number":1705,"context_line":"    # List of error strings to re-try."},{"line_number":1706,"context_line":"    retry_strings \u003d ["},{"line_number":1707,"context_line":"        \u0027Multiple ebtables programs\u0027"},{"line_number":1708,"context_line":"    ]"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_51a1b2a8","line":1705,"in_reply_to":"baa041b7_7d02f770","updated":"2015-04-06 18:53:11.000000000","message":"I would rather leave this here to make the code a little easier to read and better understand the scope of retry_strings. optimizing this by moving it to the module level sounds like premature optimization to me.","commit_id":"a9b2adbb139569b91a89f3f1d4115f7d370eaf58"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"13fc4a47a8228258d170c10170120f92ff181de4","unresolved":false,"context_lines":[{"line_number":1727,"context_line":"            if any(error in exc.stderr for error in retry_strings):"},{"line_number":1728,"context_line":"                if count \u003e attempts and check_exit_code:"},{"line_number":1729,"context_line":"                    LOG.warning(_LW(\u0027%s failed. Not Retrying.\u0027), \u0027 \u0027.join(cmd))"},{"line_number":1730,"context_line":"                    raise exc"},{"line_number":1731,"context_line":"                else:"},{"line_number":1732,"context_line":"                    # We need to sleep a bit before retrying"},{"line_number":1733,"context_line":"                    LOG.warning(_LW(\"%(cmd)s failed. Sleeping %(time)s \""}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_fdd727eb","line":1730,"updated":"2015-04-03 20:21:09.000000000","message":"Is this needed?","commit_id":"a9b2adbb139569b91a89f3f1d4115f7d370eaf58"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"d0f17879d64dd39c6b9d4b68564a984bf3b0599c","unresolved":false,"context_lines":[{"line_number":1727,"context_line":"            if any(error in exc.stderr for error in retry_strings):"},{"line_number":1728,"context_line":"                if count \u003e attempts and check_exit_code:"},{"line_number":1729,"context_line":"                    LOG.warning(_LW(\u0027%s failed. Not Retrying.\u0027), \u0027 \u0027.join(cmd))"},{"line_number":1730,"context_line":"                    raise exc"},{"line_number":1731,"context_line":"                else:"},{"line_number":1732,"context_line":"                    # We need to sleep a bit before retrying"},{"line_number":1733,"context_line":"                    LOG.warning(_LW(\"%(cmd)s failed. Sleeping %(time)s \""}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_63a5b8a0","line":1730,"in_reply_to":"baa041b7_fdd727eb","updated":"2015-04-03 21:56:35.000000000","message":"Yeah, this statement as written would drop the traceback from the exception, making it seem that the exception occurred here.  If you\u0027re trying to deal with the possibility of exceptions in the LOG.warning() path, I suggest using sys.exc_info() at the beginning of the exception handler and using six.reraise() at this point.  (Or the three-argument form of raise, but we have six.reraise(), so…)","commit_id":"a9b2adbb139569b91a89f3f1d4115f7d370eaf58"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"13fc4a47a8228258d170c10170120f92ff181de4","unresolved":false,"context_lines":[{"line_number":1737,"context_line":"            else:"},{"line_number":1738,"context_line":"                # Not eligible for retry"},{"line_number":1739,"context_line":"                if check_exit_code:"},{"line_number":1740,"context_line":"                    LOG.warning(_LW(\u0027%s failed. Not Retrying.\u0027), \u0027 \u0027.join(cmd))"},{"line_number":1741,"context_line":"                    raise exc"},{"line_number":1742,"context_line":"                else:"},{"line_number":1743,"context_line":"                    return"}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_7d8797d7","line":1740,"updated":"2015-04-03 20:21:09.000000000","message":"Do we have a test case for this now since you\u0027ve changed the existing negative tests to only hit the condition above.","commit_id":"a9b2adbb139569b91a89f3f1d4115f7d370eaf58"},{"author":{"_account_id":1849,"name":"Joe Gordon","email":"joe.gordon0@gmail.com","username":"jogo"},"change_message_id":"cf33c197c42698ed919fdd364d2893ac19493f48","unresolved":false,"context_lines":[{"line_number":1737,"context_line":"            else:"},{"line_number":1738,"context_line":"                # Not eligible for retry"},{"line_number":1739,"context_line":"                if check_exit_code:"},{"line_number":1740,"context_line":"                    LOG.warning(_LW(\u0027%s failed. Not Retrying.\u0027), \u0027 \u0027.join(cmd))"},{"line_number":1741,"context_line":"                    raise exc"},{"line_number":1742,"context_line":"                else:"},{"line_number":1743,"context_line":"                    return"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_74e4a43a","line":1740,"in_reply_to":"baa041b7_7d8797d7","updated":"2015-04-06 18:53:11.000000000","message":"Done","commit_id":"a9b2adbb139569b91a89f3f1d4115f7d370eaf58"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"74a621ff180bc49fc74b93af1e736a6bf78b8e5e","unresolved":false,"context_lines":[{"line_number":1705,"context_line":"    # List of error strings to re-try."},{"line_number":1706,"context_line":"    retry_strings \u003d ("},{"line_number":1707,"context_line":"        \u0027Multiple ebtables programs\u0027,"},{"line_number":1708,"context_line":"    )"},{"line_number":1709,"context_line":""},{"line_number":1710,"context_line":"    # We always try at least once"},{"line_number":1711,"context_line":"    attempts \u003d CONF.ebtables_exec_attempts"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_f48794d5","line":1708,"updated":"2015-04-06 19:07:35.000000000","message":"*shrug* I don\u0027t think it\u0027s premature, but I don\u0027t feel strongly enough to force the issue, so…","commit_id":"60009614b85eb58c91b7eae8bdab7b346d106e23"}]}
