lib/hiera/puppet_logger.rb in hiera-1.2.0 vs lib/hiera/puppet_logger.rb in hiera-1.2.1.rc1
- old
+ new
@@ -1,9 +1,9 @@
class Hiera
module Puppet_logger
class << self
def suitable?
- Kernel.const_defined?(:Puppet)
+ defined?(::Puppet) == "constant"
end
def warn(msg)
Puppet.notice("hiera(): #{msg}")
end