Return boolean false if the LDAP query function raises an exception.

This commit is contained in:
Eric Zounes 2015-09-11 10:25:25 -07:00
parent 5a24cdb067
commit b133f80a91

View File

@ -92,8 +92,8 @@ module PuppetX
return entries return entries
rescue Exception => e rescue Exception => e
Puppet.debug('There was an error searching LDAP #{e.message}') Puppet.debug('There was an error searching LDAP #{e.message}')
Puppet.debug('Returning empty array') Puppet.debug('Returning false')
return [] return false
end end
end end