Fix the deprecated usage of "get_transport"

As log says, 'oslo_messaging.transport.get_transport()' is deprecated.
The reference link of oslo_messaging is at [1].

[1] https://review.openstack.org/#/c/454194/

Change-Id: Ib4e8cc7b30a7541221d9ae2d244577b2dae5518d
changes/59/525859/1
Guoqiang Ding 5 years ago
parent ffaab41c06
commit 01be0d2a1f

@ -44,7 +44,7 @@ class EngineService(service.Service):
topic = CONF.engine.topic
server = CONF.engine.host
transport = messaging.get_transport(CONF)
transport = messaging.get_rpc_transport(CONF)
target = messaging.Target(topic=topic, server=server, fanout=False)
endpoints = [engine.DefaultEngine(orchestrator)]
access_policy = dispatcher.DefaultRPCAccessPolicy

Loading…
Cancel
Save