summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reports
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-09-23 16:29:58 -0700
committerMarkus Roberts <Markus@reality.com>2010-09-29 14:12:25 -0700
commite9f9d26ff24f0a951819c5300dbc482fabb0e82d (patch)
tree2d885557790ee0b287ee0d4990709c5168d02a85 /lib/puppet/reports
parent34f87cfd74e5c93365da11a5e676f513e8819196 (diff)
downloadpuppet-e9f9d26ff24f0a951819c5300dbc482fabb0e82d.tar.gz
puppet-e9f9d26ff24f0a951819c5300dbc482fabb0e82d.tar.xz
puppet-e9f9d26ff24f0a951819c5300dbc482fabb0e82d.zip
[#4783] (#4783) Fix RRDGraph report generation
The code made assumptions about report structure that weren't valid for 2.6.x. The change has been verified to work with 0.25.x and 2.6.x report formats. Paired with: Rein Henrichs
Diffstat (limited to 'lib/puppet/reports')
-rw-r--r--lib/puppet/reports/rrdgraph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/reports/rrdgraph.rb b/lib/puppet/reports/rrdgraph.rb
index 2357e233e..517fa8f03 100644
--- a/lib/puppet/reports/rrdgraph.rb
+++ b/lib/puppet/reports/rrdgraph.rb
@@ -122,7 +122,7 @@ Puppet::Reports.register_report(:rrdgraph) do
# that means we record the total time, the config time, and that's about
# it. We should probably send each type's time as a separate metric.
def timeclean(metric)
- metric.values = metric.values.find_all { |name, label, value| [:total, :config_retrieval].include?(name) }
+ metric.values = metric.values.find_all { |name, label, value| ['total', 'config_retrieval'].include?(name.to_s) }
end
end