Skip to content

Commit

Permalink
Fix Deprecation-Warning
Browse files Browse the repository at this point in the history
Fix Deprecation-Warning "/etc/puppetlabs/puppet/node.rb:446: warning: constant ::TimeoutError is deprecated"
  • Loading branch information
cocker-cc authored and ekohl committed May 16, 2024
1 parent 1b9b5d1 commit 78af622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/enc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def watch_and_send_facts(parallel)
result = enc(certname)
cache(certname, result)
end
rescue TimeoutError, SocketError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, NodeRetrievalError, FactUploadError => e
rescue Timeout::Error, SocketError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, NodeRetrievalError, FactUploadError => e
$stderr.puts "Serving cached ENC: #{e}"
# Read from cache, we got some sort of an error.
result = read_cache(certname)
Expand Down

0 comments on commit 78af622

Please sign in to comment.