str_replace params can't be from parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Steven Hardy | ||
Liberty |
Fix Released
|
Undecided
|
Steven Hardy |
Bug Description
I'd like to use get_param as an input to the params mapping of str_replace, but our validation prevents it:
"ERROR: "str_replace" parameters must be a mapping"
heat_template_
parameters:
HostnameMap:
type: json
default:
overcloud
Hostname:
type: string
default: overcloud-
outputs:
the_output:
value:
str_replace:
template: {get_param: Hostname}
params: {get_param: HostnameMap}
It works fine when you disable the validation, so I think we need to relax the validation such that referencing another function is considered valid, or we validate later such that the function has been resolved.
Changed in heat: | |
assignee: | nobody → Steven Hardy (shardy) |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → mitaka-3 |
tags: | added: liberty-backport-potential |
Fix proposed to branch: master /review. openstack. org/275602
Review: https:/