From 920d6b0336aebf86d321b5aa6e3d26ace6f3ae41 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Thu, 19 Jan 2023 20:41:03 +0000 Subject: [PATCH] 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 --- mistral/rpc/oslo/oslo_client.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mistral/rpc/oslo/oslo_client.py b/mistral/rpc/oslo/oslo_client.py index e9878a50b..95b7de7f0 100644 --- a/mistral/rpc/oslo/oslo_client.py +++ b/mistral/rpc/oslo/oslo_client.py @@ -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 diff --git a/requirements.txt b/requirements.txt index bb959f717..e59b3da4b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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