Sam Corbett created BROOKLYN-369:
------------------------------------

             Summary: Give feedback when location template options are invalid
                 Key: BROOKLYN-369
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-369
             Project: Brooklyn
          Issue Type: Sub-task
            Reporter: Sam Corbett


A simple way to trip yourself up is to write this:

{code}
services:
- type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess
location:
  jclouds:aws-ec2:us-east-1:
    templateOptions:
      securityGroupIds: abcdef
{code}

The security group is silently discarded because the user wrote a single String 
value but 
{{org.jclouds.aws.ec2.compute.AWSEC2TemplateOptions#securityGroupIds}} expects 
a list of strings.

The value should either be transformed to a list (though this may be 
surprising) or feedback should make its way to the user that explains that the 
value was discarded and the expected syntax for the option.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to