Solved bug with spaces in paths causing errors
This commit is contained in:
parent
e0949085a0
commit
52156d7c06
|
@ -13,7 +13,7 @@ module VagrantPlugins
|
||||||
# Import the virtual machine
|
# Import the virtual machine
|
||||||
ovf_file = env[:machine].box.directory.join("box.ovf").to_s
|
ovf_file = env[:machine].box.directory.join("box.ovf").to_s
|
||||||
if Vagrant::Util::Platform.cygwin?
|
if Vagrant::Util::Platform.cygwin?
|
||||||
ovf_file = `cygpath -w #{ovf_file}`.chomp
|
ovf_file = `cygpath -m '#{ovf_file}'`.chomp
|
||||||
end
|
end
|
||||||
env[:machine].id = env[:machine].provider.driver.import(ovf_file) do |progress|
|
env[:machine].id = env[:machine].provider.driver.import(ovf_file) do |progress|
|
||||||
env[:ui].clear_line
|
env[:ui].clear_line
|
||||||
|
|
Loading…
Reference in New Issue