)]}'
{"neutron/db/address_scope/address_scope.py":[{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"14c115d97d7c4b995da5882f7b3b7ab849e4319a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"9ad45d7e_1fed6025","updated":"2016-08-10 08:27:14.000000000","message":"neutron/db/models/address_scope.py","commit_id":"8b9cb037ab09ed57d3b6de5c8b596debb0ce33ea"}],"neutron/db/address_scope/address_scope_db.py":[{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"9c0579219ffd26037fcfe830ef376f3fba88b1e8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"bacf61ea_18f17c01","updated":"2016-08-08 07:19:39.000000000","message":"This should be neutron/db/models/address_scope.py","commit_id":"4a1dc8039fcb5db6ee56318152792ff838cf6c20"}],"neutron/db/address_scope_db.py":[{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"9c0579219ffd26037fcfe830ef376f3fba88b1e8","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                raise ext_address_scope.AddressScopeUpdateError("},{"line_number":88,"context_line":"                    address_scope_id\u003did, reason\u003dreason)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"            for k, v in a_s.items():"},{"line_number":91,"context_line":"                if k not in obj_addr_scope.AddressScope.fields_no_update:"},{"line_number":92,"context_line":"                    setattr(address_scope, k, v)"},{"line_number":93,"context_line":"            address_scope.update()"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        return self._make_address_scope_dict(address_scope)"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bacf61ea_f8caa89e","line":93,"range":{"start_line":90,"start_character":11,"end_line":93,"end_character":34},"updated":"2016-08-08 07:19:39.000000000","message":"There is update_fields(fields) method in base class [1]\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/objects/base.py#L511","commit_id":"4a1dc8039fcb5db6ee56318152792ff838cf6c20"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"14c115d97d7c4b995da5882f7b3b7ab849e4319a","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        return self._fields(res, fields)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def _get_address_scope(self, context, id):"},{"line_number":42,"context_line":"        try:"},{"line_number":43,"context_line":"            return obj_addr_scope.AddressScope.get_object(context, id\u003did)"},{"line_number":44,"context_line":"        except exc.NoResultFound:"},{"line_number":45,"context_line":"            raise ext_address_scope.AddressScopeNotFound(address_scope_id\u003did)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def is_address_scope_owned_by_tenant(self, context, id):"},{"line_number":48,"context_line":"        \"\"\"Check if address scope id is owned by the tenant or not."}],"source_content_type":"text/x-python","patch_set":4,"id":"9ad45d7e_7f273c64","line":45,"range":{"start_line":42,"start_character":8,"end_line":45,"end_character":77},"updated":"2016-08-10 08:27:14.000000000","message":"This should be implemented differently:\n\nobj \u003d obj_addr_scope.AddressScope.get_object(context, id\u003did)\nif obj is None:\n    raise ext_address_scope.AddressScopeNotFound(address_scope_id\u003did)\n\nThe get_object won\u0027t raise any exception, it will just return None.","commit_id":"8b9cb037ab09ed57d3b6de5c8b596debb0ce33ea"},{"author":{"_account_id":18332,"name":"Ankur","email":"ankur.gupta@intel.com","username":"ankur-gupta-f"},"change_message_id":"23d977f2ad553eabe64911370c9d196d0109b3d2","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        return self._fields(res, fields)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def _get_address_scope(self, context, id):"},{"line_number":42,"context_line":"        try:"},{"line_number":43,"context_line":"            return obj_addr_scope.AddressScope.get_object(context, id\u003did)"},{"line_number":44,"context_line":"        except exc.NoResultFound:"},{"line_number":45,"context_line":"            raise ext_address_scope.AddressScopeNotFound(address_scope_id\u003did)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def is_address_scope_owned_by_tenant(self, context, id):"},{"line_number":48,"context_line":"        \"\"\"Check if address scope id is owned by the tenant or not."}],"source_content_type":"text/x-python","patch_set":4,"id":"9ad45d7e_61829ec9","line":45,"range":{"start_line":42,"start_character":8,"end_line":45,"end_character":77},"in_reply_to":"9ad45d7e_7f273c64","updated":"2016-08-11 19:19:23.000000000","message":"Done","commit_id":"8b9cb037ab09ed57d3b6de5c8b596debb0ce33ea"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"14c115d97d7c4b995da5882f7b3b7ab849e4319a","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        return self._make_address_scope_dict(address_scope)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def get_address_scope(self, context, id, fields\u003dNone):"},{"line_number":96,"context_line":"        address_scope \u003d obj_addr_scope.AddressScope.get_object(context, id\u003did)"},{"line_number":97,"context_line":"        return self._make_address_scope_dict(address_scope, fields)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def get_address_scopes(self, context, filters\u003dNone, fields\u003dNone,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9ad45d7e_5fb878e5","line":96,"range":{"start_line":96,"start_character":23,"end_line":96,"end_character":78},"updated":"2016-08-10 08:27:14.000000000","message":"use _get_address_scope here, as it was in original code.","commit_id":"8b9cb037ab09ed57d3b6de5c8b596debb0ce33ea"},{"author":{"_account_id":18332,"name":"Ankur","email":"ankur.gupta@intel.com","username":"ankur-gupta-f"},"change_message_id":"23d977f2ad553eabe64911370c9d196d0109b3d2","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        return self._make_address_scope_dict(address_scope)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def get_address_scope(self, context, id, fields\u003dNone):"},{"line_number":96,"context_line":"        address_scope \u003d obj_addr_scope.AddressScope.get_object(context, id\u003did)"},{"line_number":97,"context_line":"        return self._make_address_scope_dict(address_scope, fields)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def get_address_scopes(self, context, filters\u003dNone, fields\u003dNone,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9ad45d7e_017f62e0","line":96,"range":{"start_line":96,"start_character":23,"end_line":96,"end_character":78},"in_reply_to":"9ad45d7e_5fb878e5","updated":"2016-08-11 19:19:23.000000000","message":"Done","commit_id":"8b9cb037ab09ed57d3b6de5c8b596debb0ce33ea"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"14c115d97d7c4b995da5882f7b3b7ab849e4319a","unresolved":false,"context_lines":[{"line_number":101,"context_line":"                           page_reverse\u003dFalse):"},{"line_number":102,"context_line":"        address_scopes \u003d obj_addr_scope.AddressScope.get_objects("},{"line_number":103,"context_line":"            context,"},{"line_number":104,"context_line":"            sorts\u003dsorts,"},{"line_number":105,"context_line":"            limit\u003dlimit,"},{"line_number":106,"context_line":"            marker\u003dmarker,"},{"line_number":107,"context_line":"            page_reverse\u003dpage_reverse,"},{"line_number":108,"context_line":"            **filters)"},{"line_number":109,"context_line":"        return ["},{"line_number":110,"context_line":"            self._make_address_scope_dict(addr_scope, fields)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9ad45d7e_9f22f0ff","line":107,"range":{"start_line":104,"start_character":12,"end_line":107,"end_character":38},"updated":"2016-08-10 08:27:14.000000000","message":"You should use the pager here:\n\npager \u003d base_obj.Pager(sorts, limit, page_reverse, marker)\naddress_scopes \u003d obj_addr_scope.AddressScope.get_objects(\n           context, _pager\u003dpager, **filters)","commit_id":"8b9cb037ab09ed57d3b6de5c8b596debb0ce33ea"},{"author":{"_account_id":18332,"name":"Ankur","email":"ankur.gupta@intel.com","username":"ankur-gupta-f"},"change_message_id":"23d977f2ad553eabe64911370c9d196d0109b3d2","unresolved":false,"context_lines":[{"line_number":101,"context_line":"                           page_reverse\u003dFalse):"},{"line_number":102,"context_line":"        address_scopes \u003d obj_addr_scope.AddressScope.get_objects("},{"line_number":103,"context_line":"            context,"},{"line_number":104,"context_line":"            sorts\u003dsorts,"},{"line_number":105,"context_line":"            limit\u003dlimit,"},{"line_number":106,"context_line":"            marker\u003dmarker,"},{"line_number":107,"context_line":"            page_reverse\u003dpage_reverse,"},{"line_number":108,"context_line":"            **filters)"},{"line_number":109,"context_line":"        return ["},{"line_number":110,"context_line":"            self._make_address_scope_dict(addr_scope, fields)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9ad45d7e_c11a6ac5","line":107,"range":{"start_line":104,"start_character":12,"end_line":107,"end_character":38},"in_reply_to":"9ad45d7e_9f22f0ff","updated":"2016-08-11 19:19:23.000000000","message":"Done","commit_id":"8b9cb037ab09ed57d3b6de5c8b596debb0ce33ea"},{"author":{"_account_id":22220,"name":"Anindita Das","email":"anindita.das@utexas.edu","username":"anudas"},"change_message_id":"b3e86ecb11d4c0e529d8d2175fd5a20fe2ddec52","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":122,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"},{"line_number":123,"context_line":"            address_scope \u003d obj_addr_scope.AddressScope.get_object(context,"},{"line_number":124,"context_line":"                                                                   id\u003did)"},{"line_number":125,"context_line":"            address_scope.delete()"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def _extend_network_dict_address_scope(self, network_res, network_db):"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a98d1f4_61bb100f","line":124,"updated":"2016-09-29 20:43:21.000000000","message":"Don\u0027t we need to check whether the address_scope is non-empty before deleting it?","commit_id":"899f3772aae84ad89c47c08e82273bc38ea20310"},{"author":{"_account_id":22220,"name":"Anindita Das","email":"anindita.das@utexas.edu","username":"anudas"},"change_message_id":"106ba1d7aed2c27d93f014c27ee5c557d39cc1b6","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":122,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"},{"line_number":123,"context_line":"            address_scope \u003d obj_addr_scope.AddressScope.get_object(context,"},{"line_number":124,"context_line":"                                                                   id\u003did)"},{"line_number":125,"context_line":"            address_scope.delete()"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def _extend_network_dict_address_scope(self, network_res, network_db):"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a95cdbc_88ff71a9","line":124,"in_reply_to":"1a95cdbc_1f09dedd","updated":"2016-10-05 22:01:39.000000000","message":"Thanks","commit_id":"899f3772aae84ad89c47c08e82273bc38ea20310"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"69776efa6bf4b08eaf4c89005aec21c7b0416cb0","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":122,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"},{"line_number":123,"context_line":"            address_scope \u003d obj_addr_scope.AddressScope.get_object(context,"},{"line_number":124,"context_line":"                                                                   id\u003did)"},{"line_number":125,"context_line":"            address_scope.delete()"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def _extend_network_dict_address_scope(self, network_res, network_db):"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a95cdbc_1f09dedd","line":124,"in_reply_to":"3a98d1f4_61bb100f","updated":"2016-10-05 18:16:09.000000000","message":"I guess that context.session.delete method makes that validation internally, but in this case we don\u0027t so I\u0027m going to include it.","commit_id":"899f3772aae84ad89c47c08e82273bc38ea20310"},{"author":{"_account_id":20246,"name":"Aradhana Singh","email":"aradhanamailbox@gmail.com","username":"asingh"},"change_message_id":"1d7df4017cb3b10d6f35102ef111d69f0661bada","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        \"\"\"Create an address scope.\"\"\""},{"line_number":72,"context_line":"        a_s \u003d address_scope[\u0027address_scope\u0027]"},{"line_number":73,"context_line":"        address_scope_id \u003d a_s.get(\u0027id\u0027) or uuidutils.generate_uuid()"},{"line_number":74,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":75,"context_line":"            pool_args \u003d {\u0027tenant_id\u0027: a_s[\u0027tenant_id\u0027],"},{"line_number":76,"context_line":"                         \u0027id\u0027: address_scope_id,"},{"line_number":77,"context_line":"                         \u0027name\u0027: a_s[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":10,"id":"7a77a97e_e8dba2eb","line":74,"range":{"start_line":74,"start_character":1,"end_line":74,"end_character":57},"updated":"2016-11-15 20:25:08.000000000","message":"this is not required","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"76af2963903d149b89538705e497c63350ca2189","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        \"\"\"Create an address scope.\"\"\""},{"line_number":72,"context_line":"        a_s \u003d address_scope[\u0027address_scope\u0027]"},{"line_number":73,"context_line":"        address_scope_id \u003d a_s.get(\u0027id\u0027) or uuidutils.generate_uuid()"},{"line_number":74,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":75,"context_line":"            pool_args \u003d {\u0027tenant_id\u0027: a_s[\u0027tenant_id\u0027],"},{"line_number":76,"context_line":"                         \u0027id\u0027: address_scope_id,"},{"line_number":77,"context_line":"                         \u0027name\u0027: a_s[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_9d96ac4a","line":74,"range":{"start_line":74,"start_character":1,"end_line":74,"end_character":57},"in_reply_to":"7a77a97e_e8dba2eb","updated":"2016-11-25 13:48:05.000000000","message":"Done","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":20246,"name":"Aradhana Singh","email":"aradhanamailbox@gmail.com","username":"asingh"},"change_message_id":"1d7df4017cb3b10d6f35102ef111d69f0661bada","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def update_address_scope(self, context, id, address_scope):"},{"line_number":86,"context_line":"        a_s \u003d address_scope[\u0027address_scope\u0027]"},{"line_number":87,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":88,"context_line":"            address_scope \u003d self._get_address_scope(context, id)"},{"line_number":89,"context_line":"            if address_scope.shared and not a_s.get(\u0027shared\u0027, True):"},{"line_number":90,"context_line":"                reason \u003d _(\"Shared address scope can\u0027t be unshared\")"}],"source_content_type":"text/x-python","patch_set":10,"id":"7a77a97e_e8b0028e","line":87,"range":{"start_line":87,"start_character":0,"end_line":87,"end_character":57},"updated":"2016-11-15 20:25:08.000000000","message":"this in not required","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"76af2963903d149b89538705e497c63350ca2189","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def update_address_scope(self, context, id, address_scope):"},{"line_number":86,"context_line":"        a_s \u003d address_scope[\u0027address_scope\u0027]"},{"line_number":87,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":88,"context_line":"            address_scope \u003d self._get_address_scope(context, id)"},{"line_number":89,"context_line":"            if address_scope.shared and not a_s.get(\u0027shared\u0027, True):"},{"line_number":90,"context_line":"                reason \u003d _(\"Shared address scope can\u0027t be unshared\")"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_fd9b2070","line":87,"range":{"start_line":87,"start_character":0,"end_line":87,"end_character":57},"in_reply_to":"7a77a97e_e8b0028e","updated":"2016-11-25 13:48:05.000000000","message":"Done","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":20246,"name":"Aradhana Singh","email":"aradhanamailbox@gmail.com","username":"asingh"},"change_message_id":"1d7df4017cb3b10d6f35102ef111d69f0661bada","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        return obj_addr_scope.AddressScope.count(context, **filters)"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def delete_address_scope(self, context, id):"},{"line_number":119,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":120,"context_line":"            if subnetpool_obj.SubnetPool.get_objects(context,"},{"line_number":121,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":122,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7a77a97e_a8e7eae2","line":119,"range":{"start_line":119,"start_character":1,"end_line":119,"end_character":57},"updated":"2016-11-15 20:25:08.000000000","message":"this not required now","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"76af2963903d149b89538705e497c63350ca2189","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        return obj_addr_scope.AddressScope.count(context, **filters)"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def delete_address_scope(self, context, id):"},{"line_number":119,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":120,"context_line":"            if subnetpool_obj.SubnetPool.get_objects(context,"},{"line_number":121,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":122,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_bd78c82c","line":119,"range":{"start_line":119,"start_character":1,"end_line":119,"end_character":57},"in_reply_to":"7a77a97e_a8e7eae2","updated":"2016-11-25 13:48:05.000000000","message":"It is still needed because we fetch subnetpools from under same transaction.","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":20246,"name":"Aradhana Singh","email":"aradhanamailbox@gmail.com","username":"asingh"},"change_message_id":"1d7df4017cb3b10d6f35102ef111d69f0661bada","unresolved":false,"context_lines":[{"line_number":120,"context_line":"            if subnetpool_obj.SubnetPool.get_objects(context,"},{"line_number":121,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":122,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"},{"line_number":123,"context_line":"            address_scope \u003d obj_addr_scope.AddressScope.get_object(context,"},{"line_number":124,"context_line":"                                                                   id\u003did)"},{"line_number":125,"context_line":"            if address_scope:"},{"line_number":126,"context_line":"                address_scope.delete()"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def _extend_network_dict_address_scope(self, network_res, network_db):"},{"line_number":129,"context_line":"        network_res[ext_address_scope.IPV4_ADDRESS_SCOPE] \u003d None"}],"source_content_type":"text/x-python","patch_set":10,"id":"7a77a97e_c89ee655","line":126,"range":{"start_line":123,"start_character":1,"end_line":126,"end_character":38},"updated":"2016-11-15 20:25:08.000000000","message":"If the object doesn\u0027t exists during delete, ObjectNotFound is raised [1]. It seems that checking if obj exists is not required. How about?\n\nobj_addr_scope.AddressScope.get_object(context, id\u003did).delete()\n[1] https://github.com/openstack/neutron/blob/master/neutron/objects/db/api.py#L67-#L74","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"76af2963903d149b89538705e497c63350ca2189","unresolved":false,"context_lines":[{"line_number":120,"context_line":"            if subnetpool_obj.SubnetPool.get_objects(context,"},{"line_number":121,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":122,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"},{"line_number":123,"context_line":"            address_scope \u003d obj_addr_scope.AddressScope.get_object(context,"},{"line_number":124,"context_line":"                                                                   id\u003did)"},{"line_number":125,"context_line":"            if address_scope:"},{"line_number":126,"context_line":"                address_scope.delete()"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def _extend_network_dict_address_scope(self, network_res, network_db):"},{"line_number":129,"context_line":"        network_res[ext_address_scope.IPV4_ADDRESS_SCOPE] \u003d None"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_5d9a5464","line":126,"range":{"start_line":123,"start_character":1,"end_line":126,"end_character":38},"in_reply_to":"7a77a97e_c89ee655","updated":"2016-11-25 13:48:05.000000000","message":"Done","commit_id":"552ac132f58f529528961c3dfa472e6364a37e16"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"6ac184eab1dabd8f85a20844bbebf1f4c48012cf","unresolved":false,"context_lines":[{"line_number":119,"context_line":"            if subnetpool_obj.SubnetPool.get_objects(context,"},{"line_number":120,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":121,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"},{"line_number":122,"context_line":"            obj_addr_scope.AddressScope.get_object(context, id\u003did).delete()"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"    def _extend_network_dict_address_scope(self, network_res, network_db):"},{"line_number":125,"context_line":"        network_res[ext_address_scope.IPV4_ADDRESS_SCOPE] \u003d None"}],"source_content_type":"text/x-python","patch_set":11,"id":"5a74a57a_8ba2b8ac","line":122,"range":{"start_line":122,"start_character":11,"end_line":122,"end_character":75},"updated":"2016-11-28 08:04:02.000000000","message":"In this construction, if get_object returns None, the .delete() will raise Attribute error. For me, the \u0027if\u0027 check should stay, or we should add try/except AttributeError...","commit_id":"48cf4c5314d425c5691da24baf5f7d2030139ff7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b9ec3d8a219b32efbe07ffe8c049e5f06cb436ec","unresolved":false,"context_lines":[{"line_number":119,"context_line":"            if subnetpool_obj.SubnetPool.get_objects(context,"},{"line_number":120,"context_line":"                                                     address_scope_id\u003did):"},{"line_number":121,"context_line":"                raise ext_address_scope.AddressScopeInUse(address_scope_id\u003did)"},{"line_number":122,"context_line":"            obj_addr_scope.AddressScope.get_object(context, id\u003did).delete()"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"    def _extend_network_dict_address_scope(self, network_res, network_db):"},{"line_number":125,"context_line":"        network_res[ext_address_scope.IPV4_ADDRESS_SCOPE] \u003d None"}],"source_content_type":"text/x-python","patch_set":11,"id":"5a74a57a_00975eec","line":122,"range":{"start_line":122,"start_character":11,"end_line":122,"end_character":75},"in_reply_to":"5a74a57a_8ba2b8ac","updated":"2016-11-28 11:06:37.000000000","message":"Ah right.","commit_id":"48cf4c5314d425c5691da24baf5f7d2030139ff7"}]}
