mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 12:55:48 +00:00
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:
commit
a963eabda7
@ -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