template-validate returns value not default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Steven Hardy |
Bug Description
The template-validate code returns a "Default" key, which is supposed to contain the default defined for a parameter.
Historically, we only supported reading a template, no parameters/
This means that (with the current implementation), if you pass a parameter value in the environment, it gets returned instead of the actual default via the "Default" key in the template-validate parameters output.
We should always return the actual parameter default, but it's probably useful to also expose the parsed value of the user-provided value too, so we should probably add a "Value" key to supplement the "Default" that is already returned, then both values will always be visible (if passed).
This will also be useful to determine at validation time if a given environment contains all parameter values required for a given template, or if additional mandatory parameters must be specified for a stack-create to succeed.
Changed in heat: | |
assignee: | nobody → Steven Hardy (shardy) |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → liberty-rc1 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-rc1 → 5.0.0 |
Fix proposed to branch: master /review. openstack. org/225184
Review: https:/