stop using register_dict_extend_funcs
The common_db_mixin method register_dict_extend_funcs is no longer needed as neutron_lib.db.resource_extend contains register_funcs which does the same thing. This patch switch uses over to neutron-lib. Change-Id: I30e1e8996efe47a6007b85fe6e2b581d10799b2d
This commit is contained in:
parent
71ff7272f4
commit
9a40157ac3
@ -53,6 +53,7 @@ from neutron_lib.callbacks import registry
|
||||
from neutron_lib.callbacks import resources
|
||||
from neutron_lib import constants
|
||||
from neutron_lib import context
|
||||
from neutron_lib.db import resource_extend
|
||||
from neutron_lib import exceptions as n_exc
|
||||
from neutron_lib.plugins import constants as plugin_const
|
||||
from neutron_lib.plugins import directory
|
||||
@ -5600,7 +5601,7 @@ class TestRouterFlavorTestCase(extension.ExtensionTestCase,
|
||||
self.plugin._flv_plugin = directory.get_plugin(plugin_const.FLAVORS)
|
||||
self.plugin._process_router_flavor_create = mock.Mock()
|
||||
|
||||
self.plugin.register_dict_extend_funcs(
|
||||
resource_extend.register_funcs(
|
||||
l3_apidef.ROUTERS, [self._mock_add_flavor_id])
|
||||
|
||||
# init the availability zones
|
||||
|
Loading…
x
Reference in New Issue
Block a user