repeat function using for_each argument doesn't work as documented in heat template

asked 2016-05-03 23:34:51 -0600

TejasG gravatar image
[root@controller-1]# cat secp.yaml
heat_template_version: 2015-04-30

parameters:
  ports:
    type: comma_delimited_list
    label: ports
    default: "80,443,8080"

resources:
  security_group:
    type: OS::Neutron::SecurityGroup
    properties:
      name: web_server_security_group
      rules:
        repeat:
          for_each:
            <%port%>: { get_param: ports }
          template:
            protocol: tcp
            port_range_min: <%port%>
            port_range_max: <%port%>

[root@controller-1]# heat stack-create -f secp.yaml s6
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect.
edit retag flag offensive close merge delete

Comments

This sounds more like a bug report than a question. Please report it at https://bugs.launchpad.net/heat and be sure to include details like what version of Heat you are running, and preferably a traceback from whichever component (heat-engine or heat-api) that failed.

zaneb gravatar imagezaneb ( 2016-05-19 14:32:12 -0600 )edit