PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/warnings.rb |
# Methods to help with handling warnings.
module Puppet::Util::Warnings
module_function
def notice_once(msg)
Puppet::Util::Warnings.maybe_log(msg, self.class) { Puppet.notice msg }
end
def debug_once(msg)
return nil unless Puppet[:debug]
Puppet::Util::Warnings.maybe_log(msg, self.class) { Puppet.debug msg }
end
def warnonce(msg)
Puppet::Util::Warnings.maybe_log(msg, self.class) { Puppet.warning msg }
end
def clear_warnings
@stampwarnings = {}
nil
end
def self.maybe_log(message, klass)
@stampwarnings ||= {}
@stampwarnings[klass] ||= []
return nil if @stampwarnings[klass].include? message
yield
@stampwarnings[klass] << message
nil
end
end