Issue #11826 has been updated by Dominic Cleal. Category set to Faces Status changed from Accepted to In Topic Branch Pending Review Assignee changed from Daniel Pittman to Dominic Cleal Target version set to 2.7.x Affected Puppet version set to 2.7.3 Keywords set to ca Branch set to https://github.com/puppetlabs/puppet/pull/372
---------------------------------------- Bug #11826: CA Face errors out when there are no certs to be displayed https://projects.puppetlabs.com/issues/11826 Author: Oliver Hookins Status: In Topic Branch Pending Review Priority: Normal Assignee: Dominic Cleal Category: Faces Target version: 2.7.x Affected Puppet version: 2.7.3 Keywords: ca Branch: https://github.com/puppetlabs/puppet/pull/372 On a fresh install of Puppet Enterprise 2.0 on CentOS 5.5 x86_64: <pre> [root@localhost ~]# puppet ca list --trace --debug --verbose /opt/puppet/lib/ruby/site_ruby/1.8/puppet/face/ca.rb:78:in `list_when_rendering_console' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application/face_base.rb:43:in `call' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application/face_base.rb:43:in `render' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application/face_base.rb:236:in `main' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:314:in `run_command' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `hook' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' /usr/local/bin/puppet:4 err: undefined method `+' for nil:NilClass err: Try 'puppet help ca list' for usage </pre> The errant line appears to be: <pre> length = hosts.map{|x| x.name.length }.max + 1 </pre> [].max is nil, so this line needs some safeguards in place when there are no hosts found to display. -- 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.
