Issue #7428 has been updated by Tim Stoop.

Not sure if this related, but I thought I'd better mention it here also. Using 
puppet 2.7.3 with ruby 1.9 also causes overrides of resources to fail with 
exactly that error. This same recipe works as expected on a puppetmaster 2.7.1 
using ruby 1.8. The override looks as follows:

<pre>File <| title == "/etc/dovecot/dovecot-sql.conf" |> {
  source => "puppet://puppet/modules/local_mail/dovecot-sql.conf",
}</pre>

The puppet master logs only the above mentioned error ("Error 400 on SERVER: 
Puppet::Parser::Compiler failed with error ArgumentError: wrong number of 
arguments (1 for 0)"), even with trace and debug on, there's no reference 
whatsoever to what causes this (so took us quite a while to find out what 
caused it). Should this be a separate bug or is it related to this one?
----------------------------------------
Bug #7428: Puppet cert fails on 1.9.2 with wrong number of arguments
https://projects.puppetlabs.com/issues/7428

Author: Cody Herriges
Status: Accepted
Priority: Normal
Assignee: 
Category: ruby19
Target version: 2.7.x
Affected Puppet version: 2.7.0rc1
Keywords: certificate cert 1.9
Branch: 


    ody@orihime:[~]% rvm use 1.9.2                                            
-- INSERT --
    Using /Users/ody/.rvm/gems/ruby-1.9.2-p180
    ody@orihime:[~]% sudo envpuppet puppet cert --trace --list                
-- INSERT --
    /Users/ody/gits/puppet/lib/puppet/application/cert.rb:42:in `block (2 
levels) in <class:Cert>'
    /Users/ody/gits/puppet/lib/puppet/application.rb:358:in `block (2 levels) 
in parse_options'
    /Users/ody/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:1277:in 
`call'
    /Users/ody/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:1277:in 
`block in parse_in_order'
    /Users/ody/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:1264:in 
`catch'
    /Users/ody/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:1264:in 
`parse_in_order'
    /Users/ody/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:1258:in 
`order!'
    /Users/ody/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:1349:in 
`permute!'
    /Users/ody/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/optparse.rb:1370:in 
`parse!'
    /Users/ody/gits/puppet/lib/puppet/application.rb:365:in `parse_options'
    /Users/ody/gits/puppet/lib/puppet/application/cert.rb:212:in `parse_options'
    /Users/ody/gits/puppet/lib/puppet/application.rb:303:in `block (2 levels) 
in run'
    /Users/ody/gits/puppet/lib/puppet/application.rb:411:in `hook'
    /Users/ody/gits/puppet/lib/puppet/application.rb:303:in `block in run'
    /Users/ody/gits/puppet/lib/puppet/application.rb:402:in `exit_on_fail'
    /Users/ody/gits/puppet/lib/puppet/application.rb:303:in `run'
    /Users/ody/gits/puppet/lib/puppet/util/command_line.rb:61:in `execute'
    /Users/ody/gits/puppet/bin/puppet:4:in `<main>'
    Could not parse options: wrong number of arguments (1 for 0)


-- 
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to