From 70e41db95458fc745b442593ad9f338b1d634dae Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Thu, 26 Sep 2024 14:56:51 +0200 Subject: [PATCH] Use Feature's built in library loading to load telnet This mateches other features such as ssh and zlib to automatically load a library. --- lib/puppet/feature/telnet.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/puppet/feature/telnet.rb b/lib/puppet/feature/telnet.rb index cd6aceeb60a..48fb4114af6 100644 --- a/lib/puppet/feature/telnet.rb +++ b/lib/puppet/feature/telnet.rb @@ -2,8 +2,4 @@ require_relative '../../puppet/util/feature' -Puppet.features.add :telnet do - require 'net/telnet' -rescue LoadError - false -end +Puppet.features.add(:telnet, :libs => %(net/telnet))