From 74b6c09e3b074e0ffc8679dcf31b5fa900020e39 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Mon, 15 Nov 2010 14:24:15 -0800 Subject: (#4726) Fix RRD legacy support There was a section of code that didn't take the legacy RRD library into account. This caused a unit test failure, but only if you have the RRD legacy library installed, which I did. Paired-with: Jesse Wolfe --- lib/puppet/util/metric.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/util/metric.rb b/lib/puppet/util/metric.rb index 90a244836..8f55e7b44 100644 --- a/lib/puppet/util/metric.rb +++ b/lib/puppet/util/metric.rb @@ -64,7 +64,7 @@ class Puppet::Util::Metric end def graph(range = nil) - unless Puppet.features.rrd? + unless Puppet.features.rrd? || Puppet.features.rrd_legacy? Puppet.warning "RRD library is missing; cannot graph metrics" return end -- cgit