Skip to content

Instantly share code, notes, and snippets.

@xuanmingyi
Last active August 18, 2017 04:35
Show Gist options
  • Save xuanmingyi/253d3f9b8e1d51739b5d74289c306359 to your computer and use it in GitHub Desktop.
Save xuanmingyi/253d3f9b8e1d51739b5d74289c306359 to your computer and use it in GitHub Desktop.
import oslo_messaing as messaging
transport = messaging.get_transport(cfg.CONF)
target = messaging.Target(topic='test', version='2.0')
client = messaging.RPCClient(transport, target)
client.call(ctxt, 'test', arg=arg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment