Extend the arg count of the function to meet the lib

This commit is contained in:
Zach Leslie 2015-06-13 16:33:34 -07:00
parent da9e6ee077
commit 85ebc74fae

View File

@ -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