summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/ldap.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2010-01-22 00:48:37 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit2fa0a489e26fc2512783c67b1b4579a03f8a20a6 (patch)
tree0c0157fe3e854fc5fbfa1bd94fc47c528dffef27 /lib/puppet/provider/ldap.rb
parentaff59926bb8c8e7a136d6e87359e9857a4512da9 (diff)
downloadpuppet-2fa0a489e26fc2512783c67b1b4579a03f8a20a6.tar.gz
puppet-2fa0a489e26fc2512783c67b1b4579a03f8a20a6.tar.xz
puppet-2fa0a489e26fc2512783c67b1b4579a03f8a20a6.zip
Adding parameter validation to Puppet::Resource
This will allow us to remove all of the parameter validation from the other Resource classes. This is possible because resource types defined in the language are visible outside of the parser, via the environment. This will enable lots of code removal and simplication. Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'lib/puppet/provider/ldap.rb')
-rw-r--r--lib/puppet/provider/ldap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/ldap.rb b/lib/puppet/provider/ldap.rb
index be6683891..38668e5e5 100644
--- a/lib/puppet/provider/ldap.rb
+++ b/lib/puppet/provider/ldap.rb
@@ -78,7 +78,7 @@ class Puppet::Provider::Ldap < Puppet::Provider
param, values = ary
# Skip any attributes we don't manage.
- next result unless self.class.resource_type.validattr?(param)
+ next result unless self.class.resource_type.valid_parameter?(param)
paramclass = self.class.resource_type.attrclass(param)