1
0
Fork 0
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:
alan 2015-06-04 12:22:06 -07:00
parent 8c653412b4
commit e38caa1df6

View file

@ -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