Remove deprecated internal rpc function
It was deprecated 6 years ago[1] and is no longer used.
[1] e2b614c529
Change-Id: I0905b1901429f2475784e4752889b83e6567f4ef
This commit is contained in:
parent
93700aa365
commit
6155e68f9a
|
@ -15,8 +15,6 @@
|
||||||
|
|
||||||
"""Client side of the heat engine RPC API."""
|
"""Client side of the heat engine RPC API."""
|
||||||
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
from oslo_utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo_utils import reflection
|
from oslo_utils import reflection
|
||||||
|
|
||||||
|
@ -114,17 +112,6 @@ class EngineClient(object):
|
||||||
|
|
||||||
return excutils.exception_filter(error_name_matches)
|
return excutils.exception_filter(error_name_matches)
|
||||||
|
|
||||||
def ignore_error_named(self, error, name):
|
|
||||||
"""Raises the error unless its local name matches the supplied name.
|
|
||||||
|
|
||||||
:param error: Remote raised error to derive the local name from.
|
|
||||||
:param name: Name to compare local name to.
|
|
||||||
"""
|
|
||||||
warnings.warn("Use ignore_error_by_name() to get a context manager "
|
|
||||||
"instead.",
|
|
||||||
DeprecationWarning)
|
|
||||||
return self.ignore_error_by_name(name)(error)
|
|
||||||
|
|
||||||
def identify_stack(self, ctxt, stack_name):
|
def identify_stack(self, ctxt, stack_name):
|
||||||
"""Returns the full stack identifier for a single, live stack.
|
"""Returns the full stack identifier for a single, live stack.
|
||||||
|
|
||||||
|
|
|
@ -74,23 +74,6 @@ class EngineRpcAPITestCase(common.HeatTestCase):
|
||||||
self.assertRaises(exception.NotFound, should_raise, ex)
|
self.assertRaises(exception.NotFound, should_raise, ex)
|
||||||
self.assertRaises(exception.NotFound, should_raise, exr)
|
self.assertRaises(exception.NotFound, should_raise, exr)
|
||||||
|
|
||||||
def test_ignore_error_named(self):
|
|
||||||
ex = exception.NotFound()
|
|
||||||
exr = self._to_remote_error(ex)
|
|
||||||
|
|
||||||
self.rpcapi.ignore_error_named(ex, 'NotFound')
|
|
||||||
self.rpcapi.ignore_error_named(exr, 'NotFound')
|
|
||||||
self.assertRaises(
|
|
||||||
exception.NotFound,
|
|
||||||
self.rpcapi.ignore_error_named,
|
|
||||||
ex,
|
|
||||||
'NotSupported')
|
|
||||||
self.assertRaises(
|
|
||||||
exception.NotFound,
|
|
||||||
self.rpcapi.ignore_error_named,
|
|
||||||
exr,
|
|
||||||
'NotSupported')
|
|
||||||
|
|
||||||
def _test_engine_api(self, method, rpc_method, **kwargs):
|
def _test_engine_api(self, method, rpc_method, **kwargs):
|
||||||
ctxt = utils.dummy_context()
|
ctxt = utils.dummy_context()
|
||||||
expected_retval = 'foo' if method == 'call' else None
|
expected_retval = 'foo' if method == 'call' else None
|
||||||
|
|
Loading…
Reference in New Issue