mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 04:54:47 +00:00
Rename Net::LDAP::LdapError to Net::LDAP::Error
The net-ldap gem deprecated `Net::LDAP::LdapError` and renamed it to `Net::LDAP::Error` starting with version 0.11 (released on Jan 21st, 2015). Version 0.17 (released on Nov 29th, 2020) removed the deprecaded `Net::LDAP::LdapError` class. Update the module to use the new class and unbreak the module when using a recent version of net-ldap.
This commit is contained in:
parent
269edc6448
commit
81f72f5a83
@ -114,7 +114,7 @@ module PuppetX
|
|||||||
|
|
||||||
Puppet.debug("ldapquery(): Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds and returned #{entries.length} results")
|
Puppet.debug("ldapquery(): Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds and returned #{entries.length} results")
|
||||||
entries
|
entries
|
||||||
rescue Net::LDAP::LdapError => e
|
rescue Net::LDAP::Error => e
|
||||||
Puppet.debug("There was an error searching LDAP #{e.message}")
|
Puppet.debug("There was an error searching LDAP #{e.message}")
|
||||||
Puppet.debug('Returning false')
|
Puppet.debug('Returning false')
|
||||||
false
|
false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user