diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-10-26 11:33:51 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-10-26 11:33:51 -0700 |
commit | b58460543a03e5e317637315b647d7ed74f0380f (patch) | |
tree | f7c56c5a858047f87026d6225e9400e5c9bdea1a /lib/chef/monkey_patches | |
parent | 29765adb7174256880d574c36435a78ce8272d5d (diff) | |
download | chef-b58460543a03e5e317637315b647d7ed74f0380f.tar.gz |
Remove unused monkeypatch on net/http.remove-net-http-monkeypatch
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/monkey_patches')
-rw-r--r-- | lib/chef/monkey_patches/net_http.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/chef/monkey_patches/net_http.rb b/lib/chef/monkey_patches/net_http.rb deleted file mode 100644 index 5955f1c6d2..0000000000 --- a/lib/chef/monkey_patches/net_http.rb +++ /dev/null @@ -1,22 +0,0 @@ - -# Module gets mixed in to Net::HTTP exception classes so we can attach our -# RESTRequest object to them and get the request parameters back out later. -module ChefNetHTTPExceptionExtensions - attr_accessor :chef_rest_request -end - -require "net/http" unless defined?(Net::HTTP) -module Net - class HTTPError < Net::ProtocolError - include ChefNetHTTPExceptionExtensions - end - class HTTPRetriableError < Net::ProtoRetriableError - include ChefNetHTTPExceptionExtensions - end - class HTTPClientException < Net::ProtoServerError - include ChefNetHTTPExceptionExtensions - end - class HTTPFatalError < Net::ProtoFatalError - include ChefNetHTTPExceptionExtensions - end -end |