]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Refactor template resolution
authorZane Bitter <zbitter@redhat.com>
Fri, 1 Jun 2012 08:50:15 +0000 (10:50 +0200)
committerZane Bitter <zbitter@redhat.com>
Mon, 4 Jun 2012 09:31:13 +0000 (11:31 +0200)
commitbece6593f00f8e096f045982673f85c67863b932
tree046605826927ed78af97f10a533fb0a090b8ed71
parentabd4b735e5f2d32e3d7bf5580b128090af0f8e4d
Refactor template resolution

Resolve functions in templates by making a copy of the data rather than
modifying the original. This means that e.g. a resource resolving functions
in its own template data does not result in changes to the data held by the
Stack.

This patch also refactors all of the template resolution methods to operate
using a common parsing algorithm to move through the tree.

Finally, the resources have been worked to load data as it is needed,
rather than requiring external code to put them into the correct state
before using them.

Change-Id: I79eafaefc9ced07b652fac7162aa2edbfa7f547a
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/engine/eip.py
heat/engine/instance.py
heat/engine/parser.py
heat/engine/resources.py
heat/tests/test_resources.py
heat/tests/test_stacks.py
heat/tests/test_validate.py