forked from rodjek/puppet-lint
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the Bug
Checks for puppet files are also being executed on yaml files. This especially happens with yaml with anchors and aliases:
[root@08f8f7ae7287 puppet]# puppet-lint hieradata/facts/env/prod/role/unbound.yaml
ERROR: Syntax error on line 3 (check: syntax)
zone.consul.contoso.com: &consulDNS
^
Try running `puppet parser validate <file>`
Expected Behavior
Only yaml compatible checks should run on yaml files.
Steps to Reproduce
Run puppet-lint on yaml files.
Additional Context
Looks like the issue may have been introduced here: https://github.com/puppetlabs/puppet-lint/pull/235/files
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working