mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-05 06:43:06 -04:00
Fix for #7568 Windows drive letter in config.vm.box_url is ignored
This commit is contained in:
parent
a4f45a18a6
commit
8768d7921d
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ module Vagrant
|
|||
u = u.gsub("\\", "/")
|
||||
if Util::Platform.windows? && u =~ /^[a-z]:/i
|
||||
# On Windows, we need to be careful about drive letters
|
||||
u = "file://#{URI.escape(u)}"
|
||||
u = "file:///#{URI.escape(u)}"
|
||||
end
|
||||
|
||||
if u =~ /^[a-z0-9]+:.*$/i && !u.start_with?("file://")
|
||||
|
|
|
|||
Loading…
Reference in a new issue