Merge pull request #6493 from Ingramz/master
Re-enable UNC paths for shared folders on Windows hosts
This commit is contained in:
commit
d425193e42
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue