Fix for #7568 Windows drive letter in config.vm.box_url is ignored
This commit is contained in:
parent
a4f45a18a6
commit
8768d7921d
|
@ -34,7 +34,7 @@ module Vagrant
|
||||||
u = u.gsub("\\", "/")
|
u = u.gsub("\\", "/")
|
||||||
if Util::Platform.windows? && u =~ /^[a-z]:/i
|
if Util::Platform.windows? && u =~ /^[a-z]:/i
|
||||||
# On Windows, we need to be careful about drive letters
|
# On Windows, we need to be careful about drive letters
|
||||||
u = "file://#{URI.escape(u)}"
|
u = "file:///#{URI.escape(u)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?("file://")
|
if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?("file://")
|
||||||
|
|
Loading…
Reference in New Issue