plugins/hosts/bsd/cap/nfs.rb in vagrant-unbundled-2.2.5.0 vs plugins/hosts/bsd/cap/nfs.rb in vagrant-unbundled-2.2.6.0
- old
+ new
@@ -24,11 +24,11 @@
#
# We build up this mapping within the following hash.
logger.debug("Compiling map of sub-directories for NFS exports...")
dirmap = {}
folders.sort_by { |_, opts| opts[:hostpath] }.each do |_, opts|
+ opts[:hostpath] = environment.host.capability(:resolve_host_path, opts[:hostpath].gsub('"', '\"'))
hostpath = opts[:hostpath].dup
- hostpath.gsub!('"', '\"')
found = false
dirmap.each do |dirs, diropts|
dirs.each do |dir|
if dir.start_with?(hostpath) || hostpath.start_with?(dir)