From 8768d7921da2fbd8c1cba11ebb5acefa2e376822 Mon Sep 17 00:00:00 2001 From: Markus Rossi Date: Tue, 12 Jul 2016 12:01:23 +0300 Subject: [PATCH] Fix for #7568 Windows drive letter in config.vm.box_url is ignored --- lib/vagrant/action/builtin/box_add.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index aace697d7..6a0eb9f44 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -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://")