)]}'
{"neutron/plugins/bigswitch/servermanager.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f023f6d4ac4acef0a92d55b9b14fddabbc799848","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            self.capabilities \u003d body"},{"line_number":117,"context_line":"        except Exception as e:"},{"line_number":118,"context_line":"            LOG.error(_(\"Couldn\u0027t retrieve capabilities. \""},{"line_number":119,"context_line":"                        \"Newer API calls won\u0027t be supported.\\n%s\" % e))"},{"line_number":120,"context_line":"        LOG.info(_(\"The following capabilities were received \""},{"line_number":121,"context_line":"                   \"for %(server)s: %(cap)s\"), {\u0027server\u0027: self.server,"},{"line_number":122,"context_line":"                                                \u0027cap\u0027: self.capabilities})"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_af3b85cf","line":119,"updated":"2014-06-04 06:20:24.000000000","message":"flake8 says the following and i agree.  besides that l17n in log messages is IMO a bad idea.\n\nFormatting operation should be outside of localization method call","commit_id":"4117f0946c3dfbe5d55b09e5f378944ef5792f59"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7b3709adba7c9fa67b1364841cfdd63abe78a606","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            self.capabilities \u003d body"},{"line_number":117,"context_line":"        except Exception as e:"},{"line_number":118,"context_line":"            LOG.error(_(\"Couldn\u0027t retrieve capabilities. \""},{"line_number":119,"context_line":"                        \"Newer API calls won\u0027t be supported.\\n%s\" % e))"},{"line_number":120,"context_line":"        LOG.info(_(\"The following capabilities were received \""},{"line_number":121,"context_line":"                   \"for %(server)s: %(cap)s\"), {\u0027server\u0027: self.server,"},{"line_number":122,"context_line":"                                                \u0027cap\u0027: self.capabilities})"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_0f72b910","line":119,"in_reply_to":"1ae5cdf2_af3b85cf","updated":"2014-06-04 07:13:40.000000000","message":"Good catch. Explicitly running flake8 on this file alone didn\u0027t catch this one.","commit_id":"4117f0946c3dfbe5d55b09e5f378944ef5792f59"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"bbfe034daf4cb76d0d13fa464150fc7406deff89","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    def get_capabilities(self):"},{"line_number":112,"context_line":"        try:"},{"line_number":113,"context_line":"            body \u003d self.rest_call(\u0027GET\u0027, CAPABILITIES_PATH)[3]"},{"line_number":114,"context_line":"            if not isinstance(body, list):"},{"line_number":115,"context_line":"                raise ValueError(\"Capability response was not a list.\")"},{"line_number":116,"context_line":"            self.capabilities \u003d body"},{"line_number":117,"context_line":"        except Exception as e:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_f0de386c","line":114,"updated":"2014-06-04 15:53:31.000000000","message":"+1","commit_id":"39a73d65574ea1f87926d5e44b958111916e66f9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"5767c56a037a80cb5e66a2e135ed9a462c599640","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    def get_capabilities(self):"},{"line_number":112,"context_line":"        try:"},{"line_number":113,"context_line":"            body \u003d self.rest_call(\u0027GET\u0027, CAPABILITIES_PATH)[3]"},{"line_number":114,"context_line":"            if not isinstance(body, list):"},{"line_number":115,"context_line":"                raise ValueError(\"Capability response was not a list.\")"},{"line_number":116,"context_line":"            self.capabilities \u003d body"},{"line_number":117,"context_line":"        except Exception as e:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_580d60e7","line":114,"updated":"2014-06-04 10:31:05.000000000","message":"I wonder if you\u0027d be not better off checking for iterable object instead.","commit_id":"39a73d65574ea1f87926d5e44b958111916e66f9"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"5767c56a037a80cb5e66a2e135ed9a462c599640","unresolved":false,"context_lines":[{"line_number":115,"context_line":"                raise ValueError(\"Capability response was not a list.\")"},{"line_number":116,"context_line":"            self.capabilities \u003d body"},{"line_number":117,"context_line":"        except Exception as e:"},{"line_number":118,"context_line":"            LOG.error(_(\"Couldn\u0027t retrieve capabilities. \""},{"line_number":119,"context_line":"                        \"Newer API calls won\u0027t be supported.\\n%s\"), e)"},{"line_number":120,"context_line":"        LOG.info(_(\"The following capabilities were received \""},{"line_number":121,"context_line":"                   \"for %(server)s: %(cap)s\"), {\u0027server\u0027: self.server,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_3865f4b4","line":118,"updated":"2014-06-04 10:31:05.000000000","message":"You could use LOG.exception.","commit_id":"39a73d65574ea1f87926d5e44b958111916e66f9"}],"neutron/tests/unit/bigswitch/test_servermanager.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"5767c56a037a80cb5e66a2e135ed9a462c599640","unresolved":false,"context_lines":[{"line_number":192,"context_line":"            self.assertEqual(set([\u0027b\u0027, \u0027c\u0027]), sp.get_capabilities())"},{"line_number":193,"context_line":"            self.assertEqual(2, rv.read.call_count)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    def test_capabilities_retrieval_failure(self):"},{"line_number":196,"context_line":"        sp \u003d servermanager.ServerPool()"},{"line_number":197,"context_line":"        with mock.patch(HTTPCON) as conmock:"},{"line_number":198,"context_line":"            rv \u003d conmock.return_value.getresponse.return_value"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_b8f744d2","line":195,"updated":"2014-06-04 10:31:05.000000000","message":"DRY?","commit_id":"39a73d65574ea1f87926d5e44b958111916e66f9"}]}
