)]}'
{"ironic/conductor/manager.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"48c365e76b4649bcd70be57ae16908279768bc28","unresolved":false,"context_lines":[{"line_number":2575,"context_line":"    def handle_failure(e, log_func\u003dLOG.error):"},{"line_number":2576,"context_line":"        node.last_error \u003d e"},{"line_number":2577,"context_line":"        task.process_event(\u0027fail\u0027)"},{"line_number":2578,"context_line":"        log_func(_LE(\"Failed to inspect node %(node)s: %(err)s\"),"},{"line_number":2579,"context_line":"                 {\u0027node\u0027: node.uuid, \u0027err\u0027: e})"},{"line_number":2580,"context_line":""},{"line_number":2581,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5da102_e5a313fe","line":2578,"updated":"2016-11-03 22:05:58.000000000","message":"this _LE() works because we know that the func is either LOG.error or LOG.exception. I\u0027d prefer if it was _() if we\u0027re trying to make this generic but maybe that is just a nit.","commit_id":"340a5fab93c63cb7912d29dc4bfc0d37b663178b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3521512ed0189696a57606ca77cfa5b7a3993974","unresolved":false,"context_lines":[{"line_number":2587,"context_line":"    except Exception as e:"},{"line_number":2588,"context_line":"        error \u003d (_(\u0027Unexpected exception of type %(type)s: %(msg)s\u0027) %"},{"line_number":2589,"context_line":"                 {\u0027type\u0027: type(e).__name__, \u0027msg\u0027: e})"},{"line_number":2590,"context_line":"        handle_failure(error, log_func\u003dLOG.exception)"},{"line_number":2591,"context_line":"        raise exception.HardwareInspectionFailure(error\u003derror)"},{"line_number":2592,"context_line":""},{"line_number":2593,"context_line":"    if new_state \u003d\u003d states.MANAGEABLE:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5da102_9ccb291e","line":2590,"range":{"start_line":2590,"start_character":39,"end_line":2590,"end_character":52},"updated":"2016-10-31 12:09:55.000000000","message":"Sam, using LOG.exception here will cause the traceback to be logged. Is it what you mean?","commit_id":"340a5fab93c63cb7912d29dc4bfc0d37b663178b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"c61f5c23930bc6b0fd296e8713ce45fc69541cba","unresolved":false,"context_lines":[{"line_number":2587,"context_line":"    except Exception as e:"},{"line_number":2588,"context_line":"        error \u003d (_(\u0027Unexpected exception of type %(type)s: %(msg)s\u0027) %"},{"line_number":2589,"context_line":"                 {\u0027type\u0027: type(e).__name__, \u0027msg\u0027: e})"},{"line_number":2590,"context_line":"        handle_failure(error, log_func\u003dLOG.exception)"},{"line_number":2591,"context_line":"        raise exception.HardwareInspectionFailure(error\u003derror)"},{"line_number":2592,"context_line":""},{"line_number":2593,"context_line":"    if new_state \u003d\u003d states.MANAGEABLE:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5da102_5c03510f","line":2590,"range":{"start_line":2590,"start_character":39,"end_line":2590,"end_character":52},"in_reply_to":"ba5da102_9ccb291e","updated":"2016-10-31 12:17:56.000000000","message":"Oh interesting! I didn\u0027t know it did that automatically! Thats what I was looking for.","commit_id":"340a5fab93c63cb7912d29dc4bfc0d37b663178b"}],"ironic/tests/unit/conductor/test_manager.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"48c365e76b4649bcd70be57ae16908279768bc28","unresolved":false,"context_lines":[{"line_number":4536,"context_line":"        node.refresh()"},{"line_number":4537,"context_line":"        self.assertEqual(states.INSPECTFAIL, node.provision_state)"},{"line_number":4538,"context_line":"        self.assertEqual(states.MANAGEABLE, node.target_provision_state)"},{"line_number":4539,"context_line":"        self.assertEqual(\u0027Unexpected exception of type RuntimeError: x\u0027,"},{"line_number":4540,"context_line":"                         node.last_error)"},{"line_number":4541,"context_line":"        self.assertTrue(mock_inspect.called)"},{"line_number":4542,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5da102_a5d2fb59","line":4539,"updated":"2016-11-03 22:05:58.000000000","message":"Did we really need to copy the string twice? Oh well.","commit_id":"340a5fab93c63cb7912d29dc4bfc0d37b663178b"}]}
