From d8fbc2505da27aab787985446630999aa0eeab0f Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 19 Feb 2020 16:44:48 -0800 Subject: Update HTTPServerException to be HTTPClientException 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 --- lib/chef/monkey_patches/net_http.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/chef/monkey_patches') 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 -- cgit v1.2.1