summaryrefslogtreecommitdiff
path: root/lib/chef/monkey_patches
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-19 16:44:48 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-19 16:44:48 -0800
commitd8fbc2505da27aab787985446630999aa0eeab0f (patch)
treebf486ae12dbd8ec6168be3ff29e976c895b37e4d /lib/chef/monkey_patches
parent38f8d2ac45a24a88bea9a035c576fadec292e9e6 (diff)
downloadchef-d8fbc2505da27aab787985446630999aa0eeab0f.tar.gz
Update HTTPServerException to be HTTPClientExceptionnet_http_deprecations
Avoid deprecation warnings. Also remove the monkeypatch that provided HTTPClientException on older Ruby releases since we're 2.6+ now and we don't need this. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/monkey_patches')
-rw-r--r--lib/chef/monkey_patches/net_http.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/chef/monkey_patches/net_http.rb b/lib/chef/monkey_patches/net_http.rb
index 07918a8c1f..42007d23a7 100644
--- a/lib/chef/monkey_patches/net_http.rb
+++ b/lib/chef/monkey_patches/net_http.rb
@@ -5,10 +5,6 @@ module ChefNetHTTPExceptionExtensions
attr_accessor :chef_rest_request
end
-unless defined?(Net::HTTPClientException)
- Net::HTTPClientException = Net::HTTPServerException
-end
-
require "net/http" unless defined?(Net::HTTP)
module Net
class HTTPError