]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
validate_template returns whole Parameters snippet
authorSteve Baker <sbaker@redhat.com>
Wed, 20 Mar 2013 03:52:49 +0000 (16:52 +1300)
committerSteve Baker <sbaker@redhat.com>
Sun, 24 Mar 2013 20:59:19 +0000 (09:59 +1300)
commit6975739b1ef133d4fdcab2b29091413c47d40205
tree3e7d1ec79e876644f659bad19270fb9356871901
parent84ba8f8ef9ca0b9c53817f387e568a71ab2d4cf8
validate_template returns whole Parameters snippet

Currently the engine validate_template returns cfn formatted
Parameters from the template, which isn't actually very useful
to build a full UI from a validate call.

This change returns the original Parameters template snippet
and changes the cfn api to reformat to the CFN API legacy format.

The Parameters section of the RPC and the REST APIs now return
a dictionary containing the parameters as specified in the template.
Previously the Parameters section contained a list in the CFN API
format.

Pseudo parameters are filtered out of the validate results.

Change-Id: Iea53dc847ff13f5f479ec3a66bcf141c4ccaeb25
Fixes: bug #1157537
heat/api/cfn/v1/stacks.py
heat/engine/service.py
heat/rpc/api.py
heat/tests/test_validate.py