Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit a0569cc

Browse files
committed
Remove unnecessary ternary operation.
Since we moved to `default.config.yml` the `vagrant_synced_folder_default_type` will always be set.
1 parent 3da370c commit a0569cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Vagrantfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
154154
end
155155

156156
# Allow override of the default synced folder type.
157-
config.vm.synced_folder host_project_dir, '/vagrant', type: vconfig.include?('vagrant_synced_folder_default_type') ? vconfig['vagrant_synced_folder_default_type'] : 'nfs'
157+
config.vm.synced_folder host_project_dir, '/vagrant', type: vconfig['vagrant_synced_folder_default_type']
158158

159159
config.vm.provision provisioner do |ansible|
160160
ansible.playbook = playbook
@@ -207,7 +207,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
207207
# Cache the composer directory.
208208
config.cache.enable :generic, cache_dir: '/home/vagrant/.composer/cache'
209209
config.cache.synced_folder_opts = {
210-
type: vconfig.include?('vagrant_synced_folder_default_type') ? vconfig['vagrant_synced_folder_default_type'] : 'nfs'
210+
type: vconfig['vagrant_synced_folder_default_type']
211211
}
212212
end
213213

0 commit comments

Comments
 (0)