diff --git a/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb b/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb index f9885e3d..d474452a 100644 --- a/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb +++ b/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb @@ -145,10 +145,8 @@ def self.verbose_rc(return_code) def self.run_ruby_method(code, miq_request_id) ActiveRecord::Base.connection_pool.release_connection unless Rails.env.test? with_automation_env do - ActiveSupport::Dependencies.interlock.permit_concurrent_loads do - run_method(Gem.ruby, miq_request_id) do |stdin| - stdin.puts(code) - end + run_method(Gem.ruby, miq_request_id) do |stdin| + stdin.puts(code) end end end