Issue #6928 has been updated by Daniel Pittman.

⚡ puppet parser validate ~/puppetlabs/tmp/bad.pp 
Could not run: Could not parse for environment production: Syntax error at '.'; 
expected '}' at /Users/daniel/puppetlabs/tmp/bad.pp:3
daniel@ea ~/puppetlabs/puppet (ruby-1.8.7-p334@puppet) 
(bug/2.7.x/7062-improve-cloudpack-option-parsing-errors) ✗
⚡ git describe
2.7.0rc1-94-g40a5bca

Sad day: can't reproduce the problem in the head of 2.7.x, ...and can't see 
anything wrong inside the code.  Sorry.  
----------------------------------------
Bug #6928: Puppet master --parseonly does not detect manifest errors
https://projects.puppetlabs.com/issues/6928

Author: Dominic Maraglia
Status: Re-opened
Priority: High
Assignee: Nigel Kersten
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