Auto remove trailing slashes from synced folders default ids

VirtualBox provider was having a hard time mounting the folders down
here.
This commit is contained in:
Fabio Rehm 2013-03-09 18:05:43 -03:00
parent 98a9b47567
commit dacd8be306
1 changed files with 1 additions and 1 deletions

View File

@ -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