Merge pull request #7571 from rossi-fi/fix/master/7570

Strip leading slash left in front of drive letter by uri.path
This commit is contained in:
Seth Vargo 2016-07-18 22:19:55 -04:00 committed by GitHub
commit 581568cf5a
1 changed files with 2 additions and 0 deletions

View File

@ -472,6 +472,8 @@ module Vagrant
if uri.scheme == "file" if uri.scheme == "file"
url = uri.path url = uri.path
url ||= uri.opaque url ||= uri.opaque
#7570 Strip leading slash left in front of drive letter by uri.path
Util::Platform.windows? && url.gsub!(/^\/([a-zA-Z]:)/, '\1')
begin begin
File.open(url, "r") do |f| File.open(url, "r") do |f|