mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 20:56:55 +00:00
Merge branch 'argcount'
This commit is contained in:
commit
eaa93d31b1
@ -9,11 +9,11 @@ end
|
|||||||
Puppet::Parser::Functions.newfunction(:ldapquery,
|
Puppet::Parser::Functions.newfunction(:ldapquery,
|
||||||
:type => :rvalue) do |args|
|
:type => :rvalue) do |args|
|
||||||
|
|
||||||
if args.size > 2
|
if args.size > 3
|
||||||
raise Puppet::ParseError, "Too many arguments received in ldapquery()"
|
raise Puppet::ParseError, "Too many arguments received in ldapquery()"
|
||||||
end
|
end
|
||||||
|
|
||||||
filter, attributes = args
|
filter, attributes, base = args
|
||||||
|
|
||||||
return PuppetX::LDAPquery.new(filter, attributes).results
|
return PuppetX::LDAPquery.new(filter, attributes, base).results
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user