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

Fix bug with imported VMs in premigrator

This commit is contained in:
Javi Fontan 2017-07-19 16:52:13 +02:00 committed by Ruben S. Montero
parent 0c715f3aa6
commit 30d8b36802

View File

@ -690,7 +690,7 @@ def vm_unmanaged_discover(devices, xml_doc, template_xml,
if !vc_vmachines.key? vm_ref
raise "Could not find vcenter vm using ref #{vm_ref} in order to assign a datastore"
else
vc_system_ds = vc_vmachine["datastore"].first rescue nil
vc_system_ds = vc_vmachines[vm_ref]["datastore"].first rescue nil
raise "Could not find Datastore associated with the VM" if vc_system_ds.nil?
ds_ref = vc_system_ds._ref