Issue #2471 has been updated by Andrew Parker. Target version deleted (2.7.x)
---------------------------------------- Bug #2471: Puppet.warning doesn't work with a hook in defaults.rb https://projects.puppetlabs.com/issues/2471#change-80222 Author: Nigel Kersten Status: Code Insufficient Priority: Low Assignee: Category: plumbing Target version: Affected Puppet version: 0.25.0 Keywords: Branch: If you try to add a Puppet.warning to a hook in defaults.rb, like: <pre> :reportserver => { :default => "$server", :desc => "(Deprecated) The server to which to send transaction reports.", :call_on_define => true, :hook => proc { |value| if value $stderr.puts "This works" Puppet.warning "This will not." Puppet.settings[:report_server] = value end } }, </pre> you get: <pre> /Library/Ruby/Site/1.8/puppet/util/log.rb:517:in `source=': uninitialized constant Puppet::Type (NameError) </pre> I notice :cacrl is using a Puppet.warning in a hook and is subject to the same issue. -- 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 puppet-bugs@googlegroups.com. To unsubscribe from this group, send email to puppet-bugs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.