Output values in template generation are broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Low
|
Zane Bitter |
Bug Description
When generating a template from an existing resource type to act as a template resource, the outputs are quoted so they appear as strings rather than functions. e.g.
openstack orchestration resource type show --template-type cfn OS::Heat:
returns a template with the section:
Outputs:
output:
Description: The string that was stored. This value is also available by referencing
the resource.
Value: '{"Fn::GetAtt": ["TestResource", "output"]}'
show:
Description: Detailed information about resource.
Value: '{"Fn::GetAtt": ["TestResource", "show"]}'
likewise:
openstack orchestration resource type show --template-type hot OS::Heat:
returns:
outputs:
output:
description: The string that was stored. This value is also available by referencing
the resource.
value: '{"get_attr": ["TestResource", "output"]}'
show:
description: Detailed information about resource.
value: '{"get_attr": ["TestResource", "show"]}'
Fix proposed to branch: master /review. openstack. org/418557
Review: https:/