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:
parent
2f96c31809
commit
1a37c96b8c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user