diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-01 17:27:54 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-01 17:27:54 +0000 |
| commit | c1e0bc625f41a55ba741818c4f238a8b48e4ba2f (patch) | |
| tree | ae3c64873c8bbd338b08dbe863113b2cbca69add /lib/puppet/client | |
| parent | 34e779fcf2bfed1c6874084af6c99e072c4ecc7f (diff) | |
| download | puppet-c1e0bc625f41a55ba741818c4f238a8b48e4ba2f.tar.gz puppet-c1e0bc625f41a55ba741818c4f238a8b48e4ba2f.tar.xz puppet-c1e0bc625f41a55ba741818c4f238a8b48e4ba2f.zip | |
More report and metrics manipulations. This should be the last of it.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1351 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/client')
| -rw-r--r-- | lib/puppet/client/master.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/puppet/client/master.rb b/lib/puppet/client/master.rb index 2544d3aef..0a3419ea4 100644 --- a/lib/puppet/client/master.rb +++ b/lib/puppet/client/master.rb @@ -86,6 +86,7 @@ class Puppet::Client::MasterClient < Puppet::Client transaction.ignoreschedules = true end + transaction.addtimes :config_retrieval => @configtime begin transaction.evaluate rescue Puppet::Error => detail @@ -101,11 +102,11 @@ class Puppet::Client::MasterClient < Puppet::Client end if Puppet[:report] - report = transaction.report() - if Puppet[:rrdgraph] == true - report.graph() - end begin + report = transaction.report() + if Puppet[:rrdgraph] == true + report.graph() + end reportclient().report(report) rescue => detail Puppet.err "Reporting failed: %s" % detail @@ -401,7 +402,9 @@ class Puppet::Client::MasterClient < Puppet::Client else lock do @running = true - self.getconfig + @configtime = thinmark do + self.getconfig + end if defined? @objects and @objects unless @local |
