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
This commit is contained in:
Guoqiang Ding 2017-12-06 10:59:05 +08:00
parent ffaab41c06
commit 01be0d2a1f
1 changed files with 1 additions and 1 deletions

View File

@ -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