Issue #2471 has been reported by Nigel Kersten.
----------------------------------------
Bug #2471: Puppet.warning doesn't work with a hook in defaults.rb
http://projects.reductivelabs.com/issues/2471
Author: Nigel Kersten
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Affected version: 0.25.0
Keywords:
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---