From b29db3b7ca3d21716d5b27845de4ae2cc9c752a0 Mon Sep 17 00:00:00 2001 From: Zach Leslie Date: Mon, 22 Jun 2015 08:19:22 -0700 Subject: [PATCH] Set some defaults --- lib/puppet/parser/functions/ldapquery.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/puppet/parser/functions/ldapquery.rb b/lib/puppet/parser/functions/ldapquery.rb index d21761e..c33efb1 100644 --- a/lib/puppet/parser/functions/ldapquery.rb +++ b/lib/puppet/parser/functions/ldapquery.rb @@ -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