mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Use traverse to get resource pools, fixes #3579
This commit is contained in:
parent
8c653412b4
commit
e38caa1df6
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module Fog
|
|||
def get_raw_resource_pool(name, cluster_name, datacenter_name)
|
||||
dc = find_raw_datacenter(datacenter_name)
|
||||
cluster = dc.find_compute_resource(cluster_name)
|
||||
name.nil? ? cluster.resourcePool : cluster.resourcePool.find( name)
|
||||
name.nil? ? cluster.resourcePool : cluster.resourcePool.traverse(name)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue