Use the scoped hash override to get overriden synced folder config
This commit is contained in:
parent
ffc2dd729b
commit
e70a25e24f
@ -1,10 +1,13 @@
|
||||
require 'ostruct'
|
||||
require "vagrant/util/scoped_hash_override"
|
||||
|
||||
module Vagrant
|
||||
class Machine
|
||||
# This module enables the Machine for server mode
|
||||
module Remote
|
||||
|
||||
include Vagrant::Util::ScopedHashOverride
|
||||
|
||||
# Add an attribute reader for the client
|
||||
# when applied to the Machine class
|
||||
def self.prepended(klass)
|
||||
@ -298,8 +301,9 @@ module Vagrant
|
||||
impl = :virtualbox
|
||||
end
|
||||
sf = Vagrant::Plugin::Remote::SyncedFolder.new(client: f[:plugin])
|
||||
folder_opts = scoped_hash_override(f[:folder], impl)
|
||||
# Set plugin, guestpath and hostpath from synced folder info
|
||||
new_folder = {f[:folder][:destination] => f[:folder].merge({
|
||||
new_folder = {f[:folder][:destination] => folder_opts.merge({
|
||||
plugin: sf,
|
||||
guestpath: f[:folder][:destination],
|
||||
hostpath: f[:folder][:source],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user