]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
heat engine : allow Properties validation failure events
authorSteven Hardy <shardy@redhat.com>
Tue, 5 Mar 2013 18:08:59 +0000 (18:08 +0000)
committerSteven Hardy <shardy@redhat.com>
Thu, 7 Mar 2013 09:03:03 +0000 (09:03 +0000)
commit0dfb31efe815c9688ebdcad861f38db51472d23a
tree66ae492112d967039af2434246273218b0598350
parentfe8cf076986e1764ddbf1a120a83f91e6564ba18
heat engine : allow Properties validation failure events

Currently if properties.validate() fails causing the resource
to go to CREATE_FAILED state, we get an error when creating
the event, because the bad properties are evaluated in the event
constructor.  Instead create a dummy Error property with the
error string for the event.

ref bug 1146529

Change-Id: I12f11de617d796d65c67a5ddb6d74c86adf67b5d
heat/engine/event.py
heat/tests/test_event.py
heat/tests/test_parser.py