Merge pull request #1408 from fgrehm/auto-fix-guest-shared-folder
Auto remove trailing slashes from synced folders id
This commit is contained in:
commit
fc95944631
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue