Skip to content

[bug] puppet lint error when there are no manifest files #83

@GeoffWilliams

Description

@GeoffWilliams

When there are no puppet manifests we get an error like this:

geoff@computer:~/github/puppet-windows_firewall$ make fast
cd .pdqtest && bundle exec pdqtest fast
Entered PDQTest from /home/geoff/github/puppet-windows_firewall/.pdqtest
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
puppet-lint: no file specified or specified file does not exist
puppet-lint: try 'puppet-lint --help' for more information
fastcheck (syntax+lint): 💣
Error encountered running #<Proc:0x000055c7da5be990@/home/geoff/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/pdqtest-2.0.5/exe/pdqtest:144 (lambda)>
Overall: 💩

Cause

no puppet manifests to scan so they cant be scanned

Workaround

geoff@computer:~/github/puppet-windows_firewall$ mkdir manifests
geoff@computer:~/github/puppet-windows_firewall$ touch manifests/init.pp
geoff@computer:~/github/puppet-windows_firewall$ make fast
cd .pdqtest && bundle exec pdqtest fast
Entered PDQTest from /home/geoff/github/puppet-windows_firewall/.pdqtest
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
fastcheck (syntax+lint): 😬
I'm downloading The Internet, please hold... 🐌
examples to run[]
No acceptance tests found, annotate examples with @PDQTest to make some
overall acceptance test status=true
Overall: 😎

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions