Issue #16006 has been updated by eric sorenson. Status changed from Needs More Information to Closed
Yes this works in master. <pre> [[email protected] ~/Sandbox]% FACTER_hostname= puppet apply ./array-15628.pp Real default1 Real default2 New value1 New value2 /Stage[main]//My::Define[array_override]/Notify[array_override]/message: defined 'message' as 'Real default1 Real default2 New value1 New value2' </pre> ---------------------------------------- Bug #16006: Undefined method `downcase' for nil:NilClass when calling puppet validate on a host without hostname https://projects.puppetlabs.com/issues/16006#change-69496 Author: Lukáš Zapletal Status: Closed Priority: Low Assignee: Lukáš Zapletal Category: SSL Target version: Affected Puppet version: 2.7.18 Keywords: Branch: Version: puppet-2.7.18-1.fc17.noarch How to reproduce: 1) Have a machine without hostname set 2) Try to call puppet parser validate some-file.pp 3) /usr/share/ruby/vendor_ruby/puppet/defaults.rb:225:in `<module:Puppet>': undefined method `downcase' for nil:NilClass (NoMethodError) from /usr/share/ruby/vendor_ruby/puppet/defaults.rb:2:in `<top (required)>' This bit has the bug: hostname = Facter["hostname"].value domain = Facter["domain"].value if domain and domain != "" fqdn = [hostname, domain].join(".") else fqdn = hostname end Puppet.setdefaults( :main, # We have to downcase the fqdn, because the current ssl stuff (as oppsed to in master) doesn't have good facilities for # manipulating naming. :certname => {:default => fqdn.downcase, :desc => "The name to use when handling certificates. Defaults to the fully qualified domain name.", :call_on_define => true, # Call our hook with the default value, so we're always downcased :hook => proc { |value| raise(ArgumentError, "Certificate names must be lower case; see #1168") unless value == value.downcase }}, :certdnsnames => { :default => '', :hook => proc do |value| I dont see this in master. Can you please confirm me this was fixed upstream? Thanks https://github.com/puppetlabs/puppet/blob/master/lib/puppet/defaults.rb -- 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.
