From 0a676fd3f1109d59bceb6d965fac5852889514e0 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 18 Feb 2022 16:53:24 -0800 Subject: [PATCH] Remove local provider class replacement in machine --- lib/vagrant/machine/remote.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/vagrant/machine/remote.rb b/lib/vagrant/machine/remote.rb index d52bcdb36..167d93e92 100644 --- a/lib/vagrant/machine/remote.rb +++ b/lib/vagrant/machine/remote.rb @@ -32,15 +32,6 @@ module Vagrant @env = env @ui = Vagrant::UI::Prefixed.new(@env.ui, name) - if Vagrant.server_mode? - local_plugin = Vagrant.plugin("2").local_manager.providers[provider_name] - if local_plugin - @logger.info("Replacing provider with local plugin; was #{provider_cls}; now #{local_plugin[0]}") - provider_cls = local_plugin[0] - provider_options = local_plugin[1] - end - end - # TODO: Get provider info from client @provider_name = provider_name @provider = provider_cls.new(self)