]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix for bad content inside Resources element
authorDavanum Srinivas <dims@linux.vnet.ibm.com>
Wed, 24 Jul 2013 03:14:16 +0000 (23:14 -0400)
committerGerrit Code Review <review@openstack.org>
Tue, 30 Jul 2013 17:57:04 +0000 (17:57 +0000)
commit11c6c3b7d77fb5bef6cdefb3b21dc966314c3692
treec5eb037cfe23c66db93d06645fd1fde6bc45e381
parent2ffb44e0aaffe876deaabed408c2a823151c8641
Fix for bad content inside Resources element

In validate_template check if we have a dict before we try to
get 'Type'. We also need to check the response back from
validate_template to see if there are any 'Error'(s) and present
that back to the user.

Fixes LP# 1204157

Change-Id: I0f636a6a84f6afc9a0aff3089e2bd13a8f88a470
heat/api/cfn/v1/stacks.py
heat/engine/service.py
heat/tests/test_api_cfn_v1.py
heat/tests/test_validate.py