summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-16 23:58:24 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-16 23:58:24 +0000
commit0dbe96d26b7f592a4c9ec7055b66e0dc14701a9b (patch)
treede8dc08351557971d88610e1e6de0e732ea467ab /lib
parentf622e18eff86d7a65e47cb6fd3ac07cceb5b3ecb (diff)
downloadpuppet-0dbe96d26b7f592a4c9ec7055b66e0dc14701a9b.tar.gz
puppet-0dbe96d26b7f592a4c9ec7055b66e0dc14701a9b.tar.xz
puppet-0dbe96d26b7f592a4c9ec7055b66e0dc14701a9b.zip
Redoing the benchmarking a little bit
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1941 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util.rb6
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