From fc692c009a88f95f30b2c650a6b92687c8b22791 Mon Sep 17 00:00:00 2001 From: hoatle Date: Thu, 12 Jul 2018 13:13:04 +0700 Subject: [PATCH] Revert "should create virtualbox sync host path if it does not exists #382" This reverts commit 7524cbe7b125378497e4c28279d1f790bff65e95. --- Vagrantfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index f6e63a06..9e0c22ea 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -251,11 +251,8 @@ Vagrant.configure("2") do |config| options[:smb_host] = item['smb_host'] unless item['smb_host'].nil? or item['smb_host'].empty? options[:smb_password] = item['smb_password'] unless item['smb_password'].nil? or item['smb_password'].empty? options[:smb_username] = item['smb_username'] unless item['smb_password'].nil? or item['smb_password'].empty? - when 'virtual_box' - if not Dir.exist?(File.dirname(__FILE__) + '/' + item['host']) and item['auto_create'] == true - FileUtils.mkdir_p File.dirname(__FILE__) + '/' + item['host'] - end end + if item['supports'].nil? or item['supports'].include?(host_os_type) config.vm.synced_folder item['host'], item['guest'], options end