summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-26 22:57:33 -0600
committerLuke Kanies <luke@madstop.com>2007-11-26 22:57:33 -0600
commit2cb11994784a5bcdbbee3f4ac44329c4feb1d6a6 (patch)
tree1637a250399b7bd97d37229f08b1191dcedbdf8a /lib/puppet
parent2d19ee2a0452baf75a23093e6fea3b743a5f0a69 (diff)
downloadpuppet-2cb11994784a5bcdbbee3f4ac44329c4feb1d6a6.tar.gz
puppet-2cb11994784a5bcdbbee3f4ac44329c4feb1d6a6.tar.xz
puppet-2cb11994784a5bcdbbee3f4ac44329c4feb1d6a6.zip
Fixing the breakage that I caused when I added the 'declared_feature?'
method to provider features.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/provider_features.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/provider_features.rb b/lib/puppet/util/provider_features.rb
index 3a9d4262d..5b0c99525 100644
--- a/lib/puppet/util/provider_features.rb
+++ b/lib/puppet/util/provider_features.rb
@@ -149,7 +149,7 @@ module Puppet::Util::ProviderFeatures
@features.each do |name, feature|
method = name.to_s + "?"
@feature_module.send(:define_method, method) do
- self.class.declared_feature?(name) or feature.available?(self)
+ (is_a?(Class) ? declared_feature?(name) : self.class.declared_feature?(name)) or feature.available?(self)
end
end