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

Crash on invalid YAML file #25

Open
dflock opened this issue May 8, 2017 · 0 comments
Open

Crash on invalid YAML file #25

dflock opened this issue May 8, 2017 · 0 comments

Comments

@dflock
Copy link
Contributor

dflock commented May 8, 2017

If you point asible-review at this YAML file (or presumably any broken/invalid YAML file):

test: [one, two]
  three, four]

you get the error message form pyaml and ansible-review quits:

INFO: Playbook ./ansible/broken_yaml/broken_yaml_1.yml declares standards version 0.1
Failed to parse YAML in ./ansible/broken_yaml/broken_yaml_1.yml: while parsing a block mapping
  in "<unicode string>", line 1, column 1:
    test: [one, two]
    ^
expected <block end>, but found '<scalar>'
  in "<unicode string>", line 2, column 3:
      three, four]
      ^

Ansible-review should trap this error and emit an ERROR:... message, and continue.

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