Merge "Remove deprecated oslo.messaging.get_transport"
This commit is contained in:
commit
4dcf7970e4
@ -36,7 +36,7 @@ class NotificationEndpoint(object):
|
||||
"""Error."""
|
||||
None
|
||||
|
||||
transport = oslo_messaging.get_transport(cfg.CONF)
|
||||
transport = oslo_messaging.get_notification_transport(cfg.CONF)
|
||||
targets = [oslo_messaging.Target(topic='notifications')]
|
||||
endpoints = [NotificationEndpoint()]
|
||||
|
||||
|
@ -23,7 +23,7 @@ from pecan import conf
|
||||
def _messaging_notifier_from_config(config):
|
||||
"""Initialize the messaging engine based on supplied config."""
|
||||
transport_url = config.get('transport_url')
|
||||
transport = messaging.get_transport(cfg.CONF, transport_url)
|
||||
transport = messaging.get_notification_transport(cfg.CONF, transport_url)
|
||||
notifier = messaging.Notifier(transport, driver='messaging',
|
||||
publisher_id='valet',
|
||||
topic='notifications', retry=10)
|
||||
|
Loading…
Reference in New Issue
Block a user