]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Simplify rpc client calls
authorMark McLoughlin <markmc@redhat.com>
Mon, 22 Apr 2013 10:12:58 +0000 (11:12 +0100)
committerMark McLoughlin <markmc@redhat.com>
Mon, 22 Apr 2013 10:42:52 +0000 (11:42 +0100)
commit4ce8855fbc631e39170044f7edc9d3e0f6e5f923
treefd779b115867be08bd141719173b724fe6ab5fd2
parentfeb98c5c261fa69c0d251329ac25b65a5fdc5d37
Simplify rpc client calls

We always pass host=None to _engine_topic() which means that we always
construct a topic using CONF.engine_topic and CONF.host.

And since RpcProxy methods falls back to the topic supplied to its
constructor, we never need to explicitly pass it.

We can safely remove the _engine_topic() method and the passing of an
explicit topic to RpcProxy methods and replace it with constructing the
correct topic at construction time, without causing any functional
changes.

While we're at it, replace the last use of the variable name FLAGS with
CONF.

Change-Id: Iefdc6b78a068975ac45b10d6b53210cb283d2ef8
heat/rpc/client.py