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

This commit is contained in:
Tino Vazquez 2022-02-18 11:59:23 +01:00
parent 2f96c31809
commit 1a37c96b8c

View File

@ -1735,6 +1735,11 @@ end
detach_disk_array = []
extra_config = []
keys = get_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