diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-06-25 14:04:13 -0700 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2010-06-25 18:14:58 -0700 |
| commit | e5478d4ff0510e637ecec69f8b2fc7ef844ba5c0 (patch) | |
| tree | 804e74f94879f0235bda032a548bccd4c6d40618 /lib | |
| parent | 4ef40b88f246a6c158cc3ea91ea44dc941d4ac41 (diff) | |
| download | puppet-e5478d4ff0510e637ecec69f8b2fc7ef844ba5c0.tar.gz puppet-e5478d4ff0510e637ecec69f8b2fc7ef844ba5c0.tar.xz puppet-e5478d4ff0510e637ecec69f8b2fc7ef844ba5c0.zip | |
Simplify the newattr method by removing a level violation
and update the specs that were testing it.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/type.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index f6b0282c3..2aeec82d8 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -496,12 +496,6 @@ class Type return @parameters[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 - begin # make sure the parameter doesn't have any errors return @parameters[name] = klass.new(:resource => self) |
