From dacd8be30678f1692e92145722961b6b2b7a708e Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 9 Mar 2013 18:05:43 -0300 Subject: [PATCH] Auto remove trailing slashes from synced folders default ids VirtualBox provider was having a hard time mounting the folders down here. --- plugins/kernel_v2/config/vm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index 43f864604..bcf0ac01f 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -101,7 +101,7 @@ module VagrantPlugins # @param [Hash] options Additional options. def synced_folder(hostpath, guestpath, options=nil) options ||= {} - options[:id] ||= guestpath + options[:id] ||= guestpath.to_s.gsub(/\/$/, '') options[:guestpath] = guestpath options[:hostpath] = hostpath