comma_delimited_list validated too eagerly, breaks with list_join
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Rabi Mishra |
Bug Description
It seems that either we're resolving list_join incorrectly, or perhaps there's an issue with validation and the comma_delimited
[stack@instack ~]$ heat stack-create foo3 -f list_join.yaml
ERROR: Property error: : resources.
[stack@instack ~]$ cat list_join.yaml
heat_template_
resources:
nested:
type: nested.yaml
nested2:
type: nested.yaml
nested_3:
type: nested2.yaml
properties:
# This evaluates to "n1,n2,n1,n2" in the output but
# fails validation passing it to the nested stack
the_param:
list_join:
- ','
- {get_attr: [nested, service_names]}
- {get_attr: [nested2, service_names]}
outputs:
the_param:
value:
list_join:
- ','
- {get_attr: [nested, service_names]}
- {get_attr: [nested2, service_names]}
[stack@instack ~]$ cat nested.yaml
heat_template_
outputs:
service_names:
value:
- n1
- n2
[stack@instack ~]$ cat nested2.yaml
heat_template_
parameters:
the_param:
type: comma_delimited
Changed in heat: | |
assignee: | nobody → Rabi Mishra (rabi) |
Changed in heat: | |
milestone: | none → newton-3 |
Hmm, so changing nested2 to use type:string seems to work, so it may just be that we're validating comma_delimited _list too eagerly?