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