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
|
||||
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.
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue