summaryrefslogtreecommitdiffstats
path: root/lib/puppet/log.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/log.rb')
-rw-r--r--lib/puppet/log.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/puppet/log.rb b/lib/puppet/log.rb
index 0659042ce..c8d92e649 100644
--- a/lib/puppet/log.rb
+++ b/lib/puppet/log.rb
@@ -489,10 +489,8 @@ module Puppet
# If they pass a source in to us, we make sure it is a string, and
# we retrieve any tags we can.
def source=(source)
- # We can't store the actual source, we just store the path. This
- # is a bit of a stupid hack, specifically testing for elements, but
- # eh.
- if source.is_a?(Puppet::Element) and source.respond_to?(:path)
+ # We can't store the actual source, we just store the path.
+ if source.respond_to?(:path)
@objectsource = true
@source = source.path
else