Merge pull request #5 from Ziaunys/update_return_value

Return boolean false if the LDAP query function raises an exception.
This commit is contained in:
Zach Leslie 2015-09-15 20:48:39 +00:00
commit a963eabda7

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