)]}'
{"nova/conductor/api.py":[{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"488aa6846e26c7ecc36f7d322ee006f726a0fd65","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def instance_get_by_uuid(self, context, instance_uuid):"},{"line_number":51,"context_line":"        return self._manager.instance_get_by_uuid(context,"},{"line_number":52,"context_line":"                                                          instance_uuid)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def instance_get_all_by_host(self, context, host):"},{"line_number":55,"context_line":"        return self._manager.instance_get_all_by_host(context, host)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAMH%2F%2FuG0%3D","line":52,"updated":"2012-11-28 19:48:38.000000000","message":"could probably be moved up a line ...","commit_id":"d343598218f7a163739582aa6592448606c992d9"}],"nova/conductor/manager.py":[{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"488aa6846e26c7ecc36f7d322ee006f726a0fd65","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def instance_get_all_by_host(self, context, host):"},{"line_number":60,"context_line":"        return jsonutils.to_primitive("},{"line_number":61,"context_line":"            self.db.instance_get_all_by_host(context, host))"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def migration_update(self, context, migration, status):"},{"line_number":64,"context_line":"        migration_ref \u003d self.db.migration_update(context.elevated(),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAMH%2F%2FuGg%3D","line":61,"updated":"2012-11-28 19:48:38.000000000","message":"context.elevated() is needed here.","commit_id":"d343598218f7a163739582aa6592448606c992d9"}],"nova/tests/conductor/test_conductor.py":[{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"488aa6846e26c7ecc36f7d322ee006f726a0fd65","unresolved":false,"context_lines":[{"line_number":108,"context_line":"    def test_instance_get_all_by_host(self):"},{"line_number":109,"context_line":"        orig_instance \u003d jsonutils.to_primitive(self._create_fake_instance())"},{"line_number":110,"context_line":"        all_instances \u003d self.conductor.instance_get_all_by_host("},{"line_number":111,"context_line":"            self.context.elevated(), orig_instance[\u0027host\u0027])"},{"line_number":112,"context_line":"        self.assertEqual(orig_instance[\u0027name\u0027],"},{"line_number":113,"context_line":"                         all_instances[0][\u0027name\u0027])"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAMH%2F%2FuGU%3D","line":111,"updated":"2012-11-28 19:48:38.000000000","message":"Just use self.context if you change the conductor manager to elevate the context","commit_id":"d343598218f7a163739582aa6592448606c992d9"}]}
