mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2026-05-06 07:42:46 +00:00
Set some defaults
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user