From 85ebc74fae92cea0df0e9b9fb90afcf7f66262bd Mon Sep 17 00:00:00 2001 From: Zach Leslie Date: Sat, 13 Jun 2015 16:33:34 -0700 Subject: [PATCH] Extend the arg count of the function to meet the lib --- lib/puppet/parser/functions/ldapquery.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/puppet/parser/functions/ldapquery.rb b/lib/puppet/parser/functions/ldapquery.rb index eb2729f..d21761e 100644 --- a/lib/puppet/parser/functions/ldapquery.rb +++ b/lib/puppet/parser/functions/ldapquery.rb @@ -9,11 +9,11 @@ end Puppet::Parser::Functions.newfunction(:ldapquery, :type => :rvalue) do |args| - if args.size > 2 + if args.size > 3 raise Puppet::ParseError, "Too many arguments received in ldapquery()" end - filter, attributes = args + filter, attributes, base = args - return PuppetX::LDAPquery.new(filter, attributes).results + return PuppetX::LDAPquery.new(filter, attributes, base).results end