Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Running the following works, but still outputs plain text even though json is requested:
~ be puppet parser validate ~/Desktop/example2.pp --render-as json
|
Error: Could not parse for environment production: Syntax error at 'ensure' at /Users/jpogran/Desktop/example2.pp:4:2 |
This is important as some downstream tooling (i.e. our VSCode extension) would like to have structured input to parse. While the above example is one line, other errors span multiple, making parsing a brittle affair.
A suggestion was to use puppet's loggin facility to log to a file and then parse that, but puppet parser validate does not recognize the --logdir paramter.
Attachments
Issue Links
- causes
-
PUP-9815 `bundle exec rake syntax` reports invalid manifests as valid
-
- Resolved
-