From 70143d217fcf3cd2bfbcfd0e5c9c38292716de2b Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 30 Jun 2006 20:43:29 +0000 Subject: Trying to merge metrics and reports. There is now a separate transaction report class, and it works throughout the previously existing system. I will next go through trying to make a metric report that graphs the metrics in rrd. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1347 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/reports/tagmail.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/reports') diff --git a/lib/puppet/reports/tagmail.rb b/lib/puppet/reports/tagmail.rb index e356b8ba8..16096f62f 100644 --- a/lib/puppet/reports/tagmail.rb +++ b/lib/puppet/reports/tagmail.rb @@ -36,9 +36,9 @@ Puppet::Server::Report.newreport(:tagmail) do |report| tags.each do |tag, emails| messages = nil if tag == "all" - messages = report + messages = report.logs else - messages = report.find_all do |log| + messages = report.logs.find_all do |log| log.tagged?(tag) end end -- cgit