core: don't prepare folders in disable ode
This commit is contained in:
parent
1c203405d2
commit
0b6938d8ab
|
@ -76,8 +76,10 @@ module Vagrant
|
||||||
|
|
||||||
# Go through each folder and prepare the folders
|
# Go through each folder and prepare the folders
|
||||||
folders.each do |impl, impl_name, fs|
|
folders.each do |impl, impl_name, fs|
|
||||||
@logger.info("Invoking synced folder prepare for: #{impl_name}")
|
if !env[:synced_folders_disable]
|
||||||
impl.prepare(env[:machine], fs, impl_opts(impl_name, env))
|
@logger.info("Invoking synced folder prepare for: #{impl_name}")
|
||||||
|
impl.prepare(env[:machine], fs, impl_opts(impl_name, env))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Continue, we need the VM to be booted.
|
# Continue, we need the VM to be booted.
|
||||||
|
|
|
@ -147,7 +147,6 @@ module VagrantPlugins
|
||||||
|
|
||||||
if !env[:host_machine_sync_folders]
|
if !env[:host_machine_sync_folders]
|
||||||
@logger.info("Not syncing folders because container created.")
|
@logger.info("Not syncing folders because container created.")
|
||||||
return
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if !new_config.synced_folders.empty?
|
if !new_config.synced_folders.empty?
|
||||||
|
|
Loading…
Reference in New Issue