Merge pull request #1408 from fgrehm/auto-fix-guest-shared-folder

Auto remove trailing slashes from synced folders id
This commit is contained in:
Mitchell Hashimoto 2013-03-09 14:09:30 -08:00
commit fc95944631
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ module VagrantPlugins
# @param [Hash] options Additional options. # @param [Hash] options Additional options.
def synced_folder(hostpath, guestpath, options=nil) def synced_folder(hostpath, guestpath, options=nil)
options ||= {} options ||= {}
options[:id] ||= guestpath options[:id] ||= guestpath.to_s.gsub(/\/$/, '')
options[:guestpath] = guestpath options[:guestpath] = guestpath
options[:hostpath] = hostpath options[:hostpath] = hostpath