messaging: remove unused cleanup function
Change-Id: Ia85d59529558c427eff3e0c0f3e941ed94186116 Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
fbecc24b80
commit
34282df13f
@ -75,15 +75,6 @@ def get_transport(url=None, optional=False, cache=True):
|
|||||||
return transport
|
return transport
|
||||||
|
|
||||||
|
|
||||||
def cleanup():
|
|
||||||
"""Cleanup the oslo_messaging layer."""
|
|
||||||
global TRANSPORTS, NOTIFIERS
|
|
||||||
NOTIFIERS = {}
|
|
||||||
for url in TRANSPORTS:
|
|
||||||
TRANSPORTS[url].cleanup()
|
|
||||||
del TRANSPORTS[url]
|
|
||||||
|
|
||||||
|
|
||||||
def get_rpc_server(transport, topic, endpoint):
|
def get_rpc_server(transport, topic, endpoint):
|
||||||
"""Return a configured oslo_messaging rpc server."""
|
"""Return a configured oslo_messaging rpc server."""
|
||||||
cfg.CONF.import_opt('host', 'aodh.service')
|
cfg.CONF.import_opt('host', 'aodh.service')
|
||||||
|
Loading…
Reference in New Issue
Block a user