From 2b1d47869170690ad4e3cf1473f9fa19db48101e Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 18 Jun 2007 15:32:45 +0000 Subject: Adding puppet-test, which is useful for performance testing git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2601 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/network/client/master.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb index ae13f8185..8b333faca 100644 --- a/lib/puppet/network/client/master.rb +++ b/lib/puppet/network/client/master.rb @@ -175,7 +175,10 @@ class Puppet::Network::Client::Master < Puppet::Network::Client def getconfig dostorage() - facts = self.class.facts + facts = nil + Puppet::Util.benchmark(:notice, "Retrieved facts") do + facts = self.class.facts + end if self.objects or FileTest.exists?(self.cachefile) if self.fresh?(facts) -- cgit