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

Add 'polite' YAML syntax validation and hinting #799

Merged
merged 1 commit into from Aug 7, 2012

Conversation

tbielawa
Copy link
Contributor

@tbielawa tbielawa commented Aug 7, 2012

Closes #798

@tbielawa
Copy link
Contributor Author

tbielawa commented Aug 7, 2012

Example output:

<tbielawa>@(deepfryer)[~/Projects/ansible] 18:25:19  (yamlvalidation) 
$ ansible-playbook -v ~/testyamlfix.yaml                                   
ERROR: Syntax Error while loading YAML script, /home/tbielawa/testyamlfix.yaml
Note: The error may actually appear before this position: line 4, column 9

  tasks
  - name: tell us what distribution this is
        ^

Given the invalid playbook:

--
- hosts phx2
  tasks
  - name: tell us what distribution this is
    action: command cat /etc/redhat-release

@mpdehaan
Copy link
Contributor

mpdehaan commented Aug 7, 2012

sharp!

mpdehaan added a commit that referenced this pull request Aug 7, 2012
Add 'polite' YAML syntax validation and hinting
@mpdehaan mpdehaan merged commit fc330ca into ansible:devel Aug 7, 2012
@mpdehaan
Copy link
Contributor

mpdehaan commented Aug 7, 2012

merged, thanks!

@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement 'polite' YAML validation
2 participants