1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5740: Fail if .vmx metadata is not available (#1791)

(cherry picked from commit e93530eff143dd670ae8a6361de2a258adfac89f)
This commit is contained in:
Christian González 2022-02-18 11:57:20 +01:00 committed by Tino Vazquez
parent 141e1e69f7
commit 85c15087cc

View File

@ -2307,6 +2307,11 @@ end
detach_disk_array = []
extra_config = []
keys = disk_keys.invert
if keys.nil? || keys.empty?
raise 'Unable to find disk mapping information on vmx file.'
end
ipool = VCenterDriver::VIHelper.one_pool(OpenNebula::ImagePool)
disks_each(:detached?) do |d|
key = d.key.to_s