Merge pull request #621 from FooBarQuaxx/patch-1

Suppress Virtualbox disk creation if already present
pull/626/head
Leseb 2016-03-14 18:32:03 +01:00
commit 57f4a77633
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -206,7 +206,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
(0..1).each do |d| (0..1).each do |d|
vb.customize ['createhd', vb.customize ['createhd',
'--filename', "disk-#{i}-#{d}", '--filename', "disk-#{i}-#{d}",
'--size', '11000'] '--size', '11000'] unless File.exist?("disk-#{i}-#{d}.vdi")
# Controller names are dependent on the VM being built. # Controller names are dependent on the VM being built.
# It is set when the base box is made in our case ubuntu/trusty64. # It is set when the base box is made in our case ubuntu/trusty64.
# Be careful while changing the box. # Be careful while changing the box.