Check first the OSD storage file rather than after created

Signed-off-by: Mario Codeniera <M.Codeniera@massey.ac.nz>
pull/7375/head
Mario Codeniera 2022-12-06 21:18:03 +13:00 committed by Guillaume Abrioux
parent e55ca01881
commit e5ad1953dc
1 changed files with 3 additions and 1 deletions

4
Vagrantfile vendored
View File

@ -523,9 +523,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end end
(0..2).each do |d| (0..2).each do |d|
unless File.exist?("disk-#{i}-#{d}.vdi")
vb.customize ['createhd', vb.customize ['createhd',
'--filename', "disk-#{i}-#{d}", '--filename', "disk-#{i}-#{d}",
'--size', '11000'] unless File.exist?("disk-#{i}-#{d}.vdi") '--size', '11000']
end
vb.customize ['storageattach', :id, vb.customize ['storageattach', :id,
'--storagectl', 'OSD Controller', '--storagectl', 'OSD Controller',
'--port', 3 + d, '--port', 3 + d,