Hi,

I have a running puppetmaster with nginx and passenger and ruby 1.9.2.

When i do puppet cert --trace --list . i get the following error.

/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application/
cert.rb:43:in `block (2 levels) in <class:Cert>'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
357:in `block (2 levels) in parse_options'
/usr/lib64/ruby/1.9.1/optparse.rb:1277:in `call'
/usr/lib64/ruby/1.9.1/optparse.rb:1277:in `block in parse_in_order'
/usr/lib64/ruby/1.9.1/optparse.rb:1264:in `catch'
/usr/lib64/ruby/1.9.1/optparse.rb:1264:in `parse_in_order'
/usr/lib64/ruby/1.9.1/optparse.rb:1258:in `order!'
/usr/lib64/ruby/1.9.1/optparse.rb:1349:in `permute!'
/usr/lib64/ruby/1.9.1/optparse.rb:1370:in `parse!'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
364:in `parse_options'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application/
cert.rb:230:in `parse_options'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
302:in `block (2 levels) in run'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
410:in `hook'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
302:in `block in run'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
401:in `exit_on_fail'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
302:in `run'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/util/
command_line.rb:69:in `execute'
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/bin/puppet:4:in `<top
(required)>'
/usr/bin/puppet:19:in `load'
/usr/bin/puppet:19:in `<main>'

Could not parse options: wrong number of arguments (1 for 0)

I have seen this bug on http://projects.puppetlabs.com/issues/7428

However i am unable to solve the problem given in the link.

I changed /usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/
application/cert.rb

Eg:

option("--all", "-a") do
    @all = true
  end

to

option("--all", "-a") do  |*_|
    @all = true
  end

Am i doing anything wrong.

Regards,
Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to