Issue #6928 has been updated by Nick Lewis.

Reverted the commit removing ignoreimport, because it's used internally in 
necessary ways.
----------------------------------------
Bug #6928: Puppet master --parseonly does not detect manifest errors
https://projects.puppetlabs.com/issues/6928

Author: Dominic Maraglia
Status: Available In Testing Branch
Priority: High
Assignee: Randall Hansen
Category: 
Target version: Statler
Affected Puppet version: development
Keywords: puppet master parseonly
Branch: 


puppet=>"2.6.7-40-gd7a1424"
facter=>"1.5.8"

Give an invalid manifest such as:
<pre>
class foo {
  file { "foobar":
    ensure  => file.
    content => "blah"
</pre>

puppet --parseonly detects the bad manifest:
<pre>
[root@cent-55-64-1 puppet]#  puppet --parseonly ./foo.pp ; echo $?
err: Could not parse for environment production: Syntax error at '.'; expected 
'}' at /etc/puppet/foo.pp:5
1
</pre>

puppet master --parseonly does not detect the error:
<pre>
[root@cent-55-64-1 puppet]#  puppet master --parseonly ./foo.pp ; echo $?
0
</pre>


-- 
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