This was apparently caused by an earlier commit, per the bug.  I reinstated
the lines that were removed from type.rb.

Also available via my github: git://github.com/jimi1283/puppet.git

---
 lib/puppet/type.rb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb
index 53c23aa..39dcf03 100644
--- a/lib/puppet/type.rb
+++ b/lib/puppet/type.rb
@@ -472,6 +472,12 @@ class Type
       raise Puppet::Error, "Resource type #{self.class.name} does not
support parameter #{name}"
     end

+    if provider and ! provider.class.supports_parameter?(klass)
+      missing = klass.required_features.find_all { |f| !
provider.class.feature?(f) }
+      info "Provider %s does not support features %s; not managing
attribute %s" % [provider.class.name, missing.join(", "), name]
+      return nil
+    end
+
     return @parameters[name] if @parameters.include?(name)

     @parameters[name] = klass.new(:resource => self)
--
1.5.5.6


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to