Skip to content

Commit

Permalink
Merge pull request #9485 from ekohl/rely-on-feature-to-load-lib
Browse files Browse the repository at this point in the history
Use Feature's built in library loading to load telnet
  • Loading branch information
joshcooper authored Sep 26, 2024
2 parents 1fba250 + 70e41db commit 26ab7e1
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 26ab7e1

Please sign in to comment.