summaryrefslogtreecommitdiff
path: root/heat
diff options
context:
space:
mode:
authorTobias Urdin <tobias.urdin@binero.se>2023-01-19 20:25:47 +0000
committerTobias Urdin <tobias.urdin@binero.se>2023-01-19 20:25:47 +0000
commit29eaf4ef716b954f6b32f0563ff03bf7f486c75c (patch)
tree6e3162ee97076c6596236990ed8c8b8494c02365 /heat
parente397629c957dcd268c95fe06f8bc4cd9c87980bc (diff)
downloadheat-29eaf4ef716b954f6b32f0563ff03bf7f486c75c.tar.gz
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: Ia48de36e3cb97378785bb4946b1a387c0da1ff81
Diffstat (limited to 'heat')
-rw-r--r--heat/common/messaging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/common/messaging.py b/heat/common/messaging.py
index 44ef904f5..8c9307034 100644
--- a/heat/common/messaging.py
+++ b/heat/common/messaging.py
@@ -136,8 +136,8 @@ def get_rpc_client(**kwargs):
target = oslo_messaging.Target(**kwargs)
serializer = RequestContextSerializer(
oslo_messaging.JsonPayloadSerializer())
- return oslo_messaging.RPCClient(TRANSPORT, target,
- serializer=serializer)
+ return oslo_messaging.get_rpc_client(
+ TRANSPORT, target, serializer=serializer)
def get_notifier(publisher_id):