mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 12:55:48 +00:00
Set some defaults
This commit is contained in:
parent
e1c10d2456
commit
b29db3b7ca
@ -15,5 +15,8 @@ Puppet::Parser::Functions.newfunction(:ldapquery,
|
|||||||
|
|
||||||
filter, attributes, base = args
|
filter, attributes, base = args
|
||||||
|
|
||||||
|
attributes ||= []
|
||||||
|
base ||= Puppet[:ldapbase]
|
||||||
|
|
||||||
return PuppetX::LDAPquery.new(filter, attributes, base).results
|
return PuppetX::LDAPquery.new(filter, attributes, base).results
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user