Skip to content

Commit 70e41db

Browse files
committed
Use Feature's built in library loading to load telnet
This mateches other features such as ssh and zlib to automatically load a library.
1 parent 1fba250 commit 70e41db

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/puppet/feature/telnet.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22

33
require_relative '../../puppet/util/feature'
44

5-
Puppet.features.add :telnet do
6-
require 'net/telnet'
7-
rescue LoadError
8-
false
9-
end
5+
Puppet.features.add(:telnet, :libs => %(net/telnet))

0 commit comments

Comments
 (0)