1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Bug #5285: Skip vCenter VApps when importing templates as they are not supported

This commit is contained in:
Jaime Melis 2017-09-08 18:43:28 +02:00
parent d7d104a848
commit 7c136b1a30

View File

@ -75,8 +75,11 @@ class Template
item = @item
while !item.instance_of? RbVmomi::VIM::Datacenter
item = item.parent
if item.nil?
if item.parent
item = item.parent
elsif item.resourcePool.instance_of? RbVmomi::VIM::VirtualApp
item = item.resourcePool.parent
else
raise "Could not find the parent Datacenter"
end
end