mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Solve recursion problem in vCenter driver for hierarchy function
(cherry picked from commit ab35b92babe0383fd193866171f75084a1e07f31)
This commit is contained in:
parent
2cac660e73
commit
2d05f1f2ea
@ -156,11 +156,10 @@ class VIClient
|
||||
def hierarchy
|
||||
vc_hosts = {}
|
||||
|
||||
@root.childEntity.each { |dc|
|
||||
|
||||
ccrs = dc.hostFolder.childEntity.grep(
|
||||
RbVmomi::VIM::ClusterComputeResource)
|
||||
datacenters = get_entities(@root, 'Datacenter')
|
||||
|
||||
datacenters.each { |dc|
|
||||
ccrs = get_entities(dc.hostFolder, 'ClusterComputeResource')
|
||||
vc_hosts[dc.name] = ccrs.collect { |c| c.name }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user