]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
engine : cleanup Resource.update error paths
authorSteven Hardy <shardy@redhat.com>
Fri, 17 May 2013 12:17:57 +0000 (13:17 +0100)
committerSteven Hardy <shardy@redhat.com>
Mon, 20 May 2013 08:02:02 +0000 (09:02 +0100)
commit2a986d838d1f46311b31b39c5f7d841fbd5775b1
tree7afaa60978af3a1d53980e8287a38acc46efdade
parent97191c32c67e935e9f8ff849d9f10a85158a5f6c
engine : cleanup Resource.update error paths

The current update code uses a nasty pattern where returning an
arbitrary string from Resource.update is interpreted in parser.Stack
as an error.  Instead use exceptions which is much nicer :)

Change-Id: I2ddebfd6bbec3dc229012406da72dd928fcc4595
heat/common/exception.py
heat/engine/parser.py
heat/engine/resource.py
heat/tests/test_parser.py
heat/tests/test_resource.py