[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:24 UTC 2009


The following commit has been merged in the master branch:
commit c5d1a4f6ffe72477ce02358a93d48df850aea15b
Author: James Turnbull <james at lovedthanlost.net>
Date:   Fri Oct 10 10:53:18 2008 +1100

    Added last part of #1633 patch - update to util/metrics.rb

diff --git a/lib/puppet/util/metric.rb b/lib/puppet/util/metric.rb
index e6d7678..0a8bc49 100644
--- a/lib/puppet/util/metric.rb
+++ b/lib/puppet/util/metric.rb
@@ -149,6 +149,11 @@ class Puppet::Util::Metric
 
     def values
         @values.sort { |a, b| a[1] <=> b[1] }
+    end 	
+
+    def [](key)
+        value = @values.find { |v| v[0] == key }
+        return value[2]
     end
 
     private

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list