]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Move client connection out of resources.py.
authorSteve Baker <sbaker@redhat.com>
Thu, 8 Nov 2012 02:49:19 +0000 (15:49 +1300)
committerSteve Baker <sbaker@redhat.com>
Thu, 8 Nov 2012 02:49:29 +0000 (15:49 +1300)
commitfb5fe068660319d079da6c44aab7d7e639c8a015
tree588d90df7383dba889e55a3e88f5f89149f28136
parent6048c0dd6b056b396597c027a463ba2ef42133ee
Move client connection out of resources.py.

Client connection references are currently cached at the resource instance
level, which doesn't seem very useful.

This change moves the client connection and caching to clients.py, then puts a
Clients instance in a Stack. This means that (for example) all requests to nova
in one stack will come from the same client instance.

Change-Id: I22519f8ae4278ad128d3785d090294285f3a1b89
heat/engine/clients.py [new file with mode: 0644]
heat/engine/parser.py
heat/engine/resources/resource.py