Skip to content

Commit

Permalink
Use Feature's built in library loading to load telnet
Browse files Browse the repository at this point in the history
This mateches other features such as ssh and zlib to automatically load
a library.
  • Loading branch information
ekohl committed Sep 26, 2024
1 parent 1fba250 commit 70e41db
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/puppet/feature/telnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 70e41db

Please sign in to comment.