core: don't prepare folders in disable ode

This commit is contained in:
Mitchell Hashimoto 2015-07-08 15:43:42 -06:00
parent 1c203405d2
commit 0b6938d8ab
2 changed files with 4 additions and 3 deletions

View File

@ -76,8 +76,10 @@ module Vagrant
# Go through each folder and prepare the folders
folders.each do |impl, impl_name, fs|
@logger.info("Invoking synced folder prepare for: #{impl_name}")
impl.prepare(env[:machine], fs, impl_opts(impl_name, env))
if !env[:synced_folders_disable]
@logger.info("Invoking synced folder prepare for: #{impl_name}")
impl.prepare(env[:machine], fs, impl_opts(impl_name, env))
end
end
# Continue, we need the VM to be booted.

View File

@ -147,7 +147,6 @@ module VagrantPlugins
if !env[:host_machine_sync_folders]
@logger.info("Not syncing folders because container created.")
return
end
if !new_config.synced_folders.empty?