Set folder guestpath and hostpath

This commit is contained in:
sophia 2021-12-03 17:10:26 -06:00 committed by Paul Hinze
parent e71e887331
commit 9c9c93a0c6
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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