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:
parent
d7d104a848
commit
7c136b1a30
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user