mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 04:54:47 +00:00
Return boolean false if the LDAP query function raises an exception.
This commit is contained in:
parent
5a24cdb067
commit
b133f80a91
@ -92,8 +92,8 @@ module PuppetX
|
||||
return entries
|
||||
rescue Exception => e
|
||||
Puppet.debug('There was an error searching LDAP #{e.message}')
|
||||
Puppet.debug('Returning empty array')
|
||||
return []
|
||||
Puppet.debug('Returning false')
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user