Hide some deprecated warnings to logs

Signed-off-by: Sergey Bogdanov <sergey.bogdanov@oktetlabs.ru>
master
Sergey Bogdanov 2024-01-10 12:07:35 +03:00
parent 751c49466c
commit 27e2866cee
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class LDAP::Cache < Hash
attr_accessor :base_dn, :scope, :field attr_accessor :base_dn, :scope, :field
def search(filter) def search(filter)
Warning[:deprecated] = false
list = Array.new list = Array.new
begin begin
@ldap.search(@base_dn, @scope, filter) do |entry| @ldap.search(@base_dn, @scope, filter) do |entry|