Improve scope error

This commit is contained in:
Zach Leslie 2017-03-10 20:08:07 -08:00
parent 90c1a3e3e4
commit 7dec36fc05

View File

@ -107,7 +107,7 @@ module PuppetX
Puppet.debug("ldapquery(): Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds and returned #{entries.length} results") Puppet.debug("ldapquery(): Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds and returned #{entries.length} results")
return entries return entries
rescue LdapError => e rescue Net::LDAP::LdapError => e
Puppet.debug("There was an error searching LDAP #{e.message}") Puppet.debug("There was an error searching LDAP #{e.message}")
Puppet.debug('Returning false') Puppet.debug('Returning false')
return false return false