Use new get_rpc_client API from oslo.messaging

Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: I13c3cfa3e2207144b23230766f9cad97668d57e8
This commit is contained in:
Tobias Urdin 2023-01-19 20:41:03 +00:00
parent 70af40becc
commit 920d6b0336
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class OsloRPCClient(rpc.RPCClient):
serializer = auth_ctx.RpcContextSerializer()
self._client = messaging.RPCClient(
self._client = messaging.get_rpc_client(
rpc.get_transport(),
messaging.Target(topic=self.topic),
serializer=serializer

View File

@ -18,7 +18,7 @@ oslo.config>=6.8.0 # Apache-2.0
oslo.context>=2.22.0 # Apache-2.0
oslo.db>=4.40.0 # Apache-2.0
oslo.i18n>=3.15.3 # Apache-2.0
oslo.messaging>=5.29.0 # Apache-2.0
oslo.messaging>=14.1.0 # Apache-2.0
oslo.middleware>=3.31.0 # Apache-2.0
oslo.policy>=3.6.0 # Apache-2.0
oslo.utils>=4.0.0 # Apache-2.0