diff options
Diffstat (limited to 'lib/puppet/log.rb')
-rw-r--r-- | lib/puppet/log.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/log.rb b/lib/puppet/log.rb index 53535e90c..44b4352ce 100644 --- a/lib/puppet/log.rb +++ b/lib/puppet/log.rb @@ -517,7 +517,9 @@ module Puppet # we retrieve any tags we can. def source=(source) # We can't store the actual source, we just store the path. - if source.respond_to?(:path) + # We can't just check for whether it responds to :path, because + # plenty of providers respond to that in their normal function. + if source.is_a?(Puppet::Element) and source.respond_to?(:path) @objectsource = true @source = source.path else |