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

F #4913: Add check for container view returns empty array in find_vcenter_vm_by_name

This commit is contained in:
mcabrerizo 2017-04-03 20:07:27 +02:00
parent ca2767c45e
commit 7beab339e9

View File

@ -73,7 +73,7 @@ class VIHelper
recursive: true
})
vcenter_vm = view.view.find{ |v| v.name == vm_name } if view.view
vcenter_vm = view.view.find{ |v| v.name == vm_name } if !!view.view && !view.view.empty?
view.DestroyView # Destroy the view