Merge "Remove unused IronicObjectIndirectionAPI from ironic-api"
This commit is contained in:
commit
04015a0b51
@ -25,8 +25,6 @@ from oslo_reports import guru_meditation_report as gmr
|
|||||||
from ironic.common import profiler
|
from ironic.common import profiler
|
||||||
from ironic.common import service as ironic_service
|
from ironic.common import service as ironic_service
|
||||||
from ironic.common import wsgi_service
|
from ironic.common import wsgi_service
|
||||||
from ironic.objects import base
|
|
||||||
from ironic.objects import indirection
|
|
||||||
from ironic import version
|
from ironic import version
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
@ -38,10 +36,6 @@ def main():
|
|||||||
|
|
||||||
gmr.TextGuruMeditation.setup_autorun(version)
|
gmr.TextGuruMeditation.setup_autorun(version)
|
||||||
|
|
||||||
# Enable object backporting via the conductor
|
|
||||||
base.IronicObject.indirection_api = (
|
|
||||||
indirection.IronicObjectIndirectionAPI())
|
|
||||||
|
|
||||||
profiler.setup('ironic_api', CONF.host)
|
profiler.setup('ironic_api', CONF.host)
|
||||||
|
|
||||||
# Build and start the WSGI app
|
# Build and start the WSGI app
|
||||||
|
@ -89,7 +89,6 @@ class TestCase(oslo_test_base.BaseTestCase):
|
|||||||
# NOTE(danms): Make sure to reset us back to non-remote objects
|
# NOTE(danms): Make sure to reset us back to non-remote objects
|
||||||
# for each test to avoid interactions. Also, backup the object
|
# for each test to avoid interactions. Also, backup the object
|
||||||
# registry
|
# registry
|
||||||
objects_base.IronicObject.indirection_api = None
|
|
||||||
self._base_test_obj_backup = copy.copy(
|
self._base_test_obj_backup = copy.copy(
|
||||||
objects_base.IronicObjectRegistry.obj_classes())
|
objects_base.IronicObjectRegistry.obj_classes())
|
||||||
self.addCleanup(self._restore_obj_registry)
|
self.addCleanup(self._restore_obj_registry)
|
||||||
|
Loading…
Reference in New Issue
Block a user