summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-13 10:35:40 -0500
committerJames Turnbull <james@lovedthanlost.net>2008-10-14 08:44:30 +1100
commitb0fd2e057a7fbff59565febc3ebb60a33863ff85 (patch)
treee8fe75e91b586a8ef03b42d215379cd00337191f /lib/puppet
parent157c0ddff032bb78838a1448eb1ff989bf1da705 (diff)
downloadpuppet-b0fd2e057a7fbff59565febc3ebb60a33863ff85.tar.gz
puppet-b0fd2e057a7fbff59565febc3ebb60a33863ff85.tar.xz
puppet-b0fd2e057a7fbff59565febc3ebb60a33863ff85.zip
Fixing #1647 - puppetdoc's 'providers' report works again.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/confine/variable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/confine/variable.rb b/lib/puppet/provider/confine/variable.rb
index 84d17367a..333356341 100644
--- a/lib/puppet/provider/confine/variable.rb
+++ b/lib/puppet/provider/confine/variable.rb
@@ -3,7 +3,7 @@ require 'puppet/provider/confine'
class Puppet::Provider::Confine::Variable < Puppet::Provider::Confine
def self.summarize(confines)
result = Hash.new { |hash, key| hash[key] = [] }
- confines.inject(result) { |total, confine| total[confine.fact] += confine.values unless confine.valid?; total }
+ confines.inject(result) { |total, confine| total[confine.class.name] += confine.values unless confine.valid?; total }
end
attr_accessor :name