mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 12:55:48 +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
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user