CSV param returned wrong when doing "heat show stack"

Bug #1367393 reported by Endre Karlson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Endre Karlson

Bug Description

When using the comma_delimited_list parameter type it will be represented badly back to the actor that tries to get the stack data using stacks.get(<name>) or heat stacks-show <name>.

Revision history for this message
Endre Karlson (endre-karlson) wrote :
Download full text (3.7 KiB)

heat_template_version: 2013-05-23

parameters:
  image:
    default: ubuntu-14.04-amd64
    type: string
  flavor:
    default: m1.small
    type: string
  csv:
    default: a,b,c
    type: comma_delimited_list

resources:
  my_server:
    type: OS::Nova::Server
    properties:
      image: { get_param: image }
      flavor: { get_param: flavor }

+----------------------+--------------------------------------------------------------------------------------------------------------+
| Property | Value |
+----------------------+--------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
| creation_time | 2014-09-09T18:14:56Z |
| description | No description |
| disable_rollback | True |
| id | 3bc645a1-2c0e-4801-9113-c68b9b9df5dc |
| links | http://172.16.10.4:8004/v1/3d8391080d4a4ec4b3eadf18e6b1539a/stacks/test/3bc645a1-2c0e-4801-9113-c68b9b9df5dc |
| notification_topics | [] |
| outputs | [] |
| parameters | { |
| | "image": "ubuntu-14.04-amd64", |
| | "csv": "[u'a', u'b', u'c']", |
| | "OS::stack_id": "3bc645a1-2c0e-4801-9113-c68b9b9df5dc", |
| | "OS::stack_name": "test", |
| | "flavor": "m1.small" |
| | } |
| stack_name | test |
| stack_status | CREATE_COMPLETE |
| stack_status_reason | Stack CREATE completed successfully ...

Read more...

Changed in heat:
assignee: nobody → Endre Karlson (endre-karlson)
status: New → In Progress
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

This looks like the list version of bug #1366798

Changed in heat:
importance: Undecided → High
Changed in heat:
milestone: none → juno-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit a22e0276bc3f47f88e1f80d4927dd9f514665f7e
Author: Endre Karlson <email address hidden>
Date: Tue Sep 9 20:05:04 2014 +0200

    Fix so that CSV as str return value

    Closes-Bug: #1367393

    Change-Id: I0e40b51482d62b94baab1187ddcc38e4aa2d854d

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: juno-rc1 → 2014.2
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.