diff options
Diffstat (limited to 'lib/puppet/util.rb')
-rw-r--r-- | lib/puppet/util.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb index 6b65a4cbc..246be2bd0 100644 --- a/lib/puppet/util.rb +++ b/lib/puppet/util.rb @@ -188,7 +188,11 @@ module Util object = nil if args.empty? - object = Puppet + if respond_to?(level) + object = self + else + object = Puppet + end else object = args.pop end |