From 45eadf003b23abf0414004184f4db4fa1ca4d1e0 Mon Sep 17 00:00:00 2001 From: MAA Date: Sat, 12 Mar 2016 23:36:57 +0300 Subject: [PATCH] Suppress Virtualbox disk creation if already present --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 1363096a4..ccd5773f0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -206,7 +206,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| (0..1).each do |d| vb.customize ['createhd', '--filename', "disk-#{i}-#{d}", - '--size', '11000'] + '--size', '11000'] unless File.exist?("disk-#{i}-#{d}.vdi") # Controller names are dependent on the VM being built. # It is set when the base box is made in our case ubuntu/trusty64. # Be careful while changing the box.