diff options
author | Neha Pansare <neha.pansare@progress.com> | 2023-05-04 20:42:22 +0530 |
---|---|---|
committer | Neha Pansare <neha.pansare@progress.com> | 2023-05-04 20:42:22 +0530 |
commit | d69e7cd23c9702feea4d14cb25d4a0dee99e4d98 (patch) | |
tree | a489127196983a641803ab296304b76a121ea406 | |
parent | 69f138f2a1a7fc76ec0ba55aa176f8d63ac5ae2e (diff) | |
download | chef-d69e7cd23c9702feea4d14cb25d4a0dee99e4d98.tar.gz |
Load monkey patch for net/http in local mode
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
-rw-r--r-- | lib/chef/application/base.rb | 2 | ||||
-rw-r--r-- | lib/chef/application/solo.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/application/base.rb b/lib/chef/application/base.rb index f4c365d390..fd1d3db023 100644 --- a/lib/chef/application/base.rb +++ b/lib/chef/application/base.rb @@ -24,6 +24,8 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) require_relative "../daemon" require "chef-config/mixin/dot_d" require "license_acceptance/cli_flags/mixlib_cli" +require "chef/monkey_patches/net-http" + module Mixlib autoload :Archive, "mixlib/archive" end diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb index 2b09eac1dc..6ef7750d6a 100644 --- a/lib/chef/application/solo.rb +++ b/lib/chef/application/solo.rb @@ -22,7 +22,7 @@ require_relative "client" require "fileutils" unless defined?(FileUtils) require "pathname" unless defined?(Pathname) require "chef-utils" unless defined?(ChefUtils::CANARY) -require "chef/monkey_patches/net-http" +#require "chef/monkey_patches/net-http" # DO NOT MAKE EDITS, see Chef::Application::Base # |