From aa9ad01b28c50f12706ac17022fd2455778738c7 Mon Sep 17 00:00:00 2001 From: Mario Codeniera Date: Tue, 6 Dec 2022 21:18:03 +1300 Subject: [PATCH] Check first the OSD storage file rather than after created Signed-off-by: Mario Codeniera (cherry picked from commit e5ad1953dccf7463507b932b04a00a17f3c8d81e) --- Vagrantfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index a25b9641e..72e891f1b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -523,9 +523,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end (0..2).each do |d| + unless File.exist?("disk-#{i}-#{d}.vdi") vb.customize ['createhd', '--filename', "disk-#{i}-#{d}", - '--size', '11000'] unless File.exist?("disk-#{i}-#{d}.vdi") + '--size', '11000'] + end vb.customize ['storageattach', :id, '--storagectl', 'OSD Controller', '--port', 3 + d, -- 2.39.5