]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Don't assume parsed JSON in REST API.
authorSteve Baker <sbaker@redhat.com>
Mon, 26 Nov 2012 00:52:34 +0000 (13:52 +1300)
committerSteve Baker <sbaker@redhat.com>
Mon, 26 Nov 2012 20:33:11 +0000 (09:33 +1300)
commitc55a2ea232a9bdca8d4d75b513772f109d0dffd0
tree16ec1b5f36027c43f92cdd9a15b1e9b74912517c
parentf1e77c0a658bd3eaf152583f55f75e77f3533650
Don't assume parsed JSON in REST API.

This checks to see if the 'template' attribute is a dict.

If not it uses format.parse_to_template to parse it.
Change-Id: Ic9b9ef3e88a33a93d5896277cc3d4da4fd55fc25
heat/api/openstack/v1/stacks.py
heat/tests/test_api_openstack_v1.py