Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message for valid, but incomplete YAML is confusing: #29

Open
josh-padnick opened this issue Jan 19, 2017 · 0 comments
Open

Error message for valid, but incomplete YAML is confusing: #29

josh-padnick opened this issue Jan 19, 2017 · 0 comments

Comments

@josh-padnick
Copy link
Contributor

josh-padnick commented Jan 19, 2017

Given this boilerplate.yml:

# Note that this YML is missing a "variables" declaration at the top!
- name: IncludeAutoScalingExample
  description: Should we include an example of how to auto scaling the service based on CPU usage (true or false)?
  type: bool

- name: UseGruntKms
  description: Should we use gruntkms (true or false)?
  type: bool

When I run this command:

boilerplate --template-folder stacks/clients/bolste/patterns/us-west-2/ \
            --non-interactive \
            --output-folder /repos/gruntwork-clients/bolste/

I get this output:

...
[boilerplate] 2017/01/18 21:27:37 Processing dependency ecs-service-golang-sample, with template folder patterns/infrastructure-modules/services/ecs-service-with-alb and output folder /repos/gruntwork-clients/bolste/infrastructure-modules/ecs-service-golang-sample
[boilerplate] 2017/01/18 21:27:37 Loading boilerplate config from patterns/infrastructure-modules/services/ecs-service-with-alb/boilerplate.yml
yaml: unmarshal errors:
  line 6: cannot unmarshal !!seq into map[string]interface {}

While the YAML is valid YAML, it's missing a variables declaration at the top. The action item here is to output a more helpful error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant