Issue #7428 has been updated by Patrick Carlisle.

Status changed from In Topic Branch Pending Review to Merged - Pending Release
Target version changed from 2.7.x to 2.7.10

This was merged in commit:933844567fbe4078cb76f2c089ced1cb6c4170b7

    (#7428) Fix option parsing for ruby 1.9 in cert application
    
    In Ruby 1.9 block arity is strictly enforced. This changes options created
    using blocks to all take one argument. The OptionParser library handles this
    correctly even if an option doesn't take arguments (giving an argument of 
true
    if the block takes an argument).
----------------------------------------
Bug #7428: Puppet cert fails on 1.9.2 with wrong number of arguments
https://projects.puppetlabs.com/issues/7428

Author: Cody Herriges
Status: Merged - Pending Release
Priority: Normal
Assignee: Patrick Carlisle
Category: ruby19
Target version: 2.7.10
Affected Puppet version: 
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 [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