Merge pull request #6493 from Ingramz/master

Re-enable UNC paths for shared folders on Windows hosts
This commit is contained in:
Mitchell Hashimoto 2015-11-18 15:20:21 -08:00
commit d425193e42
2 changed files with 3 additions and 5 deletions

View File

@ -610,6 +610,9 @@ module VagrantPlugins
def share_folders(folders) def share_folders(folders)
folders.each do |folder| folders.each do |folder|
hostpath = folder[:hostpath] hostpath = folder[:hostpath]
if Vagrant::Util::Platform.windows?
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
end
args = ["--name", args = ["--name",
folder[:name], folder[:name],
"--hostpath", "--hostpath",

View File

@ -611,14 +611,9 @@ module VagrantPlugins
def share_folders(folders) def share_folders(folders)
folders.each do |folder| folders.each do |folder|
hostpath = folder[:hostpath] hostpath = folder[:hostpath]
=begin
# Removed for GH-5933 until further research.
if Vagrant::Util::Platform.windows? if Vagrant::Util::Platform.windows?
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath) hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
end end
=end
args = ["--name", args = ["--name",
folder[:name], folder[:name],
"--hostpath", "--hostpath",