Issue #4177 has been updated by Jordan Sissel.

I found a work around. Generating a list of 'import' calls and doing 
--parseonly on them.

% find manifests modules -name '*.pp'  | sed -e 's/.*/import "&"/' | puppet 
apply --parseonly

This greatly speeds up syntax testing by only incurring puppet startup costs 
once, vs N times.
----------------------------------------
Feature #4177: parseonly should be able to parse multiple files
https://projects.puppetlabs.com/issues/4177

Author: Peter Meier
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 0.25.5
Keywords: 
Branch: 


Currently if we pass more than one file to parseonly and in one of the files 
there is a parse error, no error is reported. It would be nice if parseonly 
would report parseerrors on multiple files.

Example:

<pre>
puppet --parseonly goodfile1.pp badfile.pp goodfile2.pp
</pre>

Passes, while badfile.pp has an error. Parsong badfile alone, works perfectly.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to