mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2026-05-05 15:32:47 +00:00
Set some defaults
This commit is contained in:
@@ -15,5 +15,8 @@ Puppet::Parser::Functions.newfunction(:ldapquery,
|
||||
|
||||
filter, attributes, base = args
|
||||
|
||||
attributes ||= []
|
||||
base ||= Puppet[:ldapbase]
|
||||
|
||||
return PuppetX::LDAPquery.new(filter, attributes, base).results
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user