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: I66bef4d339b5ee2462dc46f626fd1b2c6182b2cd
This commit is contained in:
parent
a273c6fd07
commit
84b5f8cc1b
@ -40,7 +40,7 @@ def get_client(topic=None):
|
|||||||
version='1.3')
|
version='1.3')
|
||||||
else:
|
else:
|
||||||
target = messaging.Target(topic=topic, version='1.3')
|
target = messaging.Target(topic=topic, version='1.3')
|
||||||
return messaging.RPCClient(TRANSPORT, target)
|
return messaging.get_rpc_client(TRANSPORT, target)
|
||||||
|
|
||||||
|
|
||||||
def get_server(endpoints):
|
def get_server(endpoints):
|
||||||
|
@ -27,7 +27,7 @@ oslo.context>=2.22.0 # Apache-2.0
|
|||||||
oslo.db>=12.1.0 # Apache-2.0
|
oslo.db>=12.1.0 # Apache-2.0
|
||||||
oslo.i18n>=3.20.0 # Apache-2.0
|
oslo.i18n>=3.20.0 # Apache-2.0
|
||||||
oslo.log>=4.3.0 # Apache-2.0
|
oslo.log>=4.3.0 # Apache-2.0
|
||||||
oslo.messaging>=5.32.0 # Apache-2.0
|
oslo.messaging>=14.1.0 # Apache-2.0
|
||||||
oslo.middleware>=3.31.0 # Apache-2.0
|
oslo.middleware>=3.31.0 # Apache-2.0
|
||||||
oslo.policy>=3.7.0 # Apache-2.0
|
oslo.policy>=3.7.0 # Apache-2.0
|
||||||
oslo.rootwrap>=5.8.0 # Apache-2.0
|
oslo.rootwrap>=5.8.0 # Apache-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user