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:
parent
b4f84e77a0
commit
f83f5ef852
@ -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
|
||||
|
||||
########################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user