From 7dec36fc051b9a0e67676816f677ada5ca154091 Mon Sep 17 00:00:00 2001 From: Zach Leslie Date: Fri, 10 Mar 2017 20:08:07 -0800 Subject: [PATCH] Improve scope error --- lib/puppet_x/ldapquery.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet_x/ldapquery.rb b/lib/puppet_x/ldapquery.rb index 016bd3f..c639bdf 100644 --- a/lib/puppet_x/ldapquery.rb +++ b/lib/puppet_x/ldapquery.rb @@ -107,7 +107,7 @@ module PuppetX Puppet.debug("ldapquery(): Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds and returned #{entries.length} results") return entries - rescue LdapError => e + rescue Net::LDAP::LdapError => e Puppet.debug("There was an error searching LDAP #{e.message}") Puppet.debug('Returning false') return false