From 9c9c93a0c6f412c5b99d64fbb01da10386e12f1a Mon Sep 17 00:00:00 2001 From: sophia Date: Fri, 3 Dec 2021 17:10:26 -0600 Subject: [PATCH] Set folder guestpath and hostpath --- lib/vagrant/machine/remote.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/machine/remote.rb b/lib/vagrant/machine/remote.rb index b0598f30d..28e7f16ca 100644 --- a/lib/vagrant/machine/remote.rb +++ b/lib/vagrant/machine/remote.rb @@ -376,8 +376,13 @@ module Vagrant synced_folder_clients.each do |f| # TODO: get type of synced folder impl = "virtualbox" - sf = Vagrant::Plugin::V2::SyncedFolder.new._initialize(self, impl, f[:plugin]) - folders[impl] = {f[:folder][:destination] => f[:folder].merge({plugin: sf})} + sf = Vagrant::Plugin::V2::SyncedFolder.new(f[:plugin]) + # Set plugin, guestpath and hostpath from synced folder info + folders[impl] = {f[:folder][:destination] => f[:folder].merge({ + plugin: sf, + guestpath: f[:folder][:destination], + hostpath: f[:folder][:source], + })} end folders end