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

bug #3334: fix bug searching for templates in vcenter

(cherry picked from commit 55ec34a6243bf11f44a71d7f40b6e8bdaba9a297)
This commit is contained in:
Javi Fontan 2014-11-14 15:05:52 +01:00
parent b4f84e77a0
commit f83f5ef852

View File

@ -120,7 +120,7 @@ class VIClient
def find_vm_template(uuid)
vms = @dc.vmFolder.childEntity.grep(RbVmomi::VIM::VirtualMachine)
return vms.find{ |v| v.config.uuid == uuid }
return vms.find{ |v| v.config && v.config.uuid == uuid }
end
########################################################################