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:
parent
98a9b47567
commit
dacd8be306
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue