Hi Steve,
I tried with your suggestion and it works.
I am just curious about what's the difference between launching from
dashboard and launching from dashboard.
If my template is wrong, why it works in CLI?
On 09/03/2014 04:42 PM, Steven Hardy wrote:
On Wed, Sep 03, 2014 at 10:23:34AM +0800, ZHOU TAO A wrote:
Hi All,
I can launch a template from CLI by running 'heat stack-create -f
mytemplate.yaml', but I cannot launch it from dashboard because it get the
wrong security group.
I have a security group parameter defined like this:
my_security_group:
type: comma_delimited_list
label: 'Node ddddd Security Group(s)'
default:
- default
Then I used get_param to get this parameter
security_groups:
get_param: my_security_group
When launched from dashboard, the value of security_groups becomes
'[u'default']', which is suppose to be 'default'.
Anyone ever had same issue like this?
Isn't the problem that you're defining a list for the default in the
template, when it should be a string?
E.g:
security_group:
type: comma_delimited_list
label: 'Node ddddd Security Group(s)'
default: default
If you need to specify additional items, they are delimted via commas, as
described in the type name, e.g
security_group:
type: comma_delimited_list
label: 'Node ddddd Security Group(s)'
default: default,blah
Heat then splits the string into a list when parsing the template.
Hope that helps.
Steve
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack