Merge pull request #8921 from lookfwd/fix_8608

fix for issue #8608/Windows hosts
This commit is contained in:
Chris Roberts 2017-10-23 16:58:39 -07:00 committed by GitHub
commit fc7d2a3097
3 changed files with 9 additions and 1 deletions

View File

@ -48,7 +48,7 @@ module VagrantPlugins
run_cmd += ports.map { |p| ['-p', p.to_s] }
run_cmd += volumes.map { |v|
v = v.to_s
if v.include?(":") && (Vagrant::Util::Platform.windows? || Vagrant::Util::Platform.wsl?)
if v.include?(":") && @executor.windows?
host, guest = v.split(":", 2)
host = Vagrant::Util::Platform.windows_path(host)
# NOTE: Docker does not support UNC style paths (which also

View File

@ -29,6 +29,10 @@ module VagrantPlugins
result.stdout
end
def windows?
::Vagrant::Util::Platform.windows? || ::Vagrant::Util::Platform.wsl?
end
end
end
end

View File

@ -65,6 +65,10 @@ module VagrantPlugins
stdout.chomp
end
def windows?
false
end
protected
def ssh_run(cmd)