]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
heat API : Return correct AWS error response for invalid parameter
authorSteven Hardy <shardy@redhat.com>
Fri, 27 Jul 2012 13:43:37 +0000 (14:43 +0100)
committerSteven Hardy <shardy@redhat.com>
Wed, 1 Aug 2012 13:28:10 +0000 (14:28 +0100)
commitc69f3892c2563cefdc26e6bdb54bc2c2e7c7cae5
tree4b497e51b21a5a60d08a6c81b844eb49c2fa9059
parente3e011b9cb1273f0d05f87c67b76a3b07dbc20e9
heat API : Return correct AWS error response for invalid parameter

Passing template parameter values which are not in AllowedValues
makes the engine throw a ValueError exception, which should be
mapped back to HeatInvalidParameterValueError so that the API
error response is correctly formatted.

Fixes #180

Change-Id: I8615cb7fbbbfd21a403a4973fe0a63300c6cf852
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/api/v1/stacks.py