Output values in template generation are broken

Bug #1655439 reported by Zane Bitter
6
This bug affects 1 person
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::TestResource

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::TestResource

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"]}'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/418557

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/418557
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=5553a6f29c9069318f97ba6e1d83bc3f18b59240
Submitter: Jenkins
Branch: master

commit 5553a6f29c9069318f97ba6e1d83bc3f18b59240
Author: Zane Bitter <email address hidden>
Date: Tue Jan 10 15:00:39 2017 -0500

    Correct output values when generating templates

    Change-Id: Ibb41bec5c6cf4f63a5b8ab1c9a46b7219c3e46fb
    Closes-Bug: #1655439

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 8.0.0.0b3

This issue was fixed in the openstack/heat 8.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.