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

(cherry picked from commit e93530eff1)
This commit is contained in:
Christian González authored and Tino Vazquez committed 2022-02-18 11:58:06 +01:00
1 parent 141e1e69f7
commit 85c15087cc
1 file changed
+5
@@ -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