Merge pull request #161 from optiflows/shared_disabled
Respect Vagrantfile options to disable synced folders
This commit is contained in:
commit
7bca20a166
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ module Vagrant
|
|||
def shared_folders
|
||||
{}.tap do |result|
|
||||
@env[:machine].config.vm.synced_folders.each do |id, data|
|
||||
#Ignore disabled shared folders
|
||||
next if data[:disabled]
|
||||
# This to prevent overwriting the actual shared folders data
|
||||
result[id] = data.dup
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue