From a5b3ca9f6da4f6a4df26f189e81eea4b4b410507 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 14 Feb 2022 16:41:03 -0800 Subject: [PATCH] Return remote plugin instances --- lib/vagrant/machine/remote.rb | 4 ++-- plugins/commands/serve/mappers/synced_folder.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vagrant/machine/remote.rb b/lib/vagrant/machine/remote.rb index c5ee6ecd5..55ad5f363 100644 --- a/lib/vagrant/machine/remote.rb +++ b/lib/vagrant/machine/remote.rb @@ -131,7 +131,7 @@ module Vagrant def communicate @logger.debug("Getting communicator from client") if !@communicate - @communicate = Vagrant::Plugin::V2::Communicator.new(self) + @communicate = Vagrant::Plugin::Remote::Communicator.new(self) end @communicate end @@ -306,7 +306,7 @@ module Vagrant next if f[:folder][:disabled] # TODO: get type of synced folder impl = :virtualbox - sf = Vagrant::Plugin::V2::SyncedFolder.new(client: f[:plugin]) + sf = Vagrant::Plugin::Remote::SyncedFolder.new(client: f[:plugin]) # Set plugin, guestpath and hostpath from synced folder info folders[impl] = {f[:folder][:destination] => f[:folder].merge({ plugin: sf, diff --git a/plugins/commands/serve/mappers/synced_folder.rb b/plugins/commands/serve/mappers/synced_folder.rb index 41e0b2d1a..9bb356584 100644 --- a/plugins/commands/serve/mappers/synced_folder.rb +++ b/plugins/commands/serve/mappers/synced_folder.rb @@ -60,7 +60,7 @@ module VagrantPlugins end def converter(client) - Vagrant::Plugin::V2::SyncedFolder.new(client: client) + Vagrant::Plugin::Remote::SyncedFolder.new(client: client) end end end