Issue #6928 has been updated by Dominic Maraglia.
Status changed from Closed to Re-opened
Assignee changed from Randall Hansen to Nigel Kersten
Looks like a regression in RC1:
2.7.0rc1-99-gcdcff98
<pre>
[root@cent-55-386-1 puppet]# puppet parser validate /tmp/bad.pp
/usr/lib/ruby/site_ruby/1.8/puppet/interface/action.rb:218:in `validate_args':
wrong argument type Symbol (expected Proc) (TypeError)
from /usr/lib/ruby/site_ruby/1.8/puppet/interface/action.rb+eval:165:in
`validate'
from /usr/lib/ruby/site_ruby/1.8/puppet/application/face_base.rb:186:in
`send'
from /usr/lib/ruby/site_ruby/1.8/puppet/application/face_base.rb:186:in
`main'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:315:in
`run_command'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:411:in `hook'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:402:in
`exit_on_fail'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:62:in
`execute'
from /usr/bin/puppet:4
</pre>
----------------------------------------
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.