Issue #7062 has been updated by Daniel Pittman. Assignee deleted (Daniel Pittman)
---------------------------------------- Bug #7062: Improve CloudPack option parsing errors https://projects.puppetlabs.com/issues/7062#change-92349 * Author: Pieter van de Bruggen * Status: Closed * Priority: Normal * Assignee: * Category: Faces * Target version: 2.7.0 * Affected Puppet version: * Keywords: cloudpack * Branch: https://github.com/daniel-pittman/puppet/tree/bug/2.7.x/7062-improve-cloudpack-option-parsing-errors ---------------------------------------- Consider: # --group takes an argument... $ puppet node bootstrap --group --keyfile ~/id_pvande.test # The current option parsing code issues this warning... /Users/pieter/Projects/puppet-cloudpack/lib/puppet/faces/node/bootstrap.rb:10: warning: multiple values for a block parameter (2 for 1) from /Users/pieter/Projects/puppet/lib/puppet/interface/action.rb+eval:80 # ...passing these values as the arguments... ["/Users/pieter/id_pvande.test", {:login=>"ubuntu", :group=>"--keyfile", :image=>"ami-3e02f257", :tarball=>"/Users/pieter/Downloads/puppet-enterprise-1.0-all.tar.gz", :keypair=>"pvande.test", :answers=>"/Users/pieter/Downloads/puppet.answers"}] # ...which causes unexpected errors later. /Users/pieter/Projects/puppet-cloudpack/lib/puppet/faces/node/bootstrap.rb:12:in `[]=': Symbol as array index (TypeError) from /Users/pieter/Projects/puppet-cloudpack/lib/puppet/faces/node/bootstrap.rb:12:in `bootstrap implementation, required on Ruby 1.8' from /Users/pieter/Projects/puppet/lib/puppet/interface/action.rb+eval:80:in `__send__' from /Users/pieter/Projects/puppet/lib/puppet/interface/action.rb+eval:80:in `bootstrap' from /Users/pieter/Projects/puppet/lib/puppet/application/faces_base.rb:145:in `send' from /Users/pieter/Projects/puppet/lib/puppet/application/faces_base.rb:145:in `main' from /Users/pieter/Projects/puppet/lib/puppet/application.rb:314:in `run_command' from /Users/pieter/Projects/puppet/lib/puppet/application.rb:306:in `run' from /Users/pieter/Projects/puppet/lib/puppet/application.rb:405:in `hook' from /Users/pieter/Projects/puppet/lib/puppet/application.rb:306:in `run' from /Users/pieter/Projects/puppet/lib/puppet/application.rb:396:in `exit_on_fail' from /Users/pieter/Projects/puppet/lib/puppet/application.rb:306:in `run' from /Users/pieter/Projects/puppet/lib/puppet/util/command_line.rb:62:in `execute' from /Users/pieter/Projects/puppet/bin/puppet:4 Such errors should try to be a bit less obtuse. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
