In my stack, I used a OS::Heat::SoftwareConfig and OS::Heat::SoftwareDeployment, I'd like to get a output with LIST format from deployement,
config:
type: OS::Heat::SoftwareConfig
properties:
config: |
#!/bin/bash
echo -n "c15eaa6f-d08b-412e-a2b9-1c9173e6c0dd," >>$heat_outputs_path.port_list
echo -n "c15eaa6f-d08b-412e-a2b9-1c9173e6c0dd," >>$heat_outputs_path.port_list
group: script
outputs:
- {name: port_list, type: CommaDelimitedList}
do_config:
type: OS::Heat::SoftwareDeployment
properties:
signal_transport: HEAT_SIGNAL
config: {get_resource: api_config}
server: {get_param: server_id}
Then I need to pass the LIST output to my resource,
update_port:
type: SHA::POST::Ports
properties:
port_list: {get_attr: [do_config, port_list]}
But I got an error:
| stack_status | CREATE_FAILED |
| stack_status_reason | Resource CREATE failed: StackValidationFailed: |
| | resources.update_port: Property error: |
| | update_port.Properties.port_list: "u'"c15eaa6f-d08b- |
| | 412e-a2b9-1c9173e6c0dd","c15eaa6f-d08b-412e- |
| | a2b9-1c9173e6c0dd",'" is not a list
am I wrong using CommaDelimitedList in $heat_outputs_path ? I output a comma delimited list in $heat_outputs_path, but it is not a LIST, can not be used as a LIST parameter for other resource.
sorry, the config is :
config: :SoftwareConfig d08b-412e- a2b9-1c9173e6c0 dd," >>${heat_ outputs_ path}.port_ list d08b-412e- a2b9-1c9173e6c0 dd," >>$h{eat_ outputs_ path}.port_ list
type: OS::Heat:
properties:
config: |
#!/bin/bash
echo -n "c15eaa6f-
echo -n "c15eaa6f-
group: script
outputs:
- {name: port_list, type: CommaDelimitedList}