1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vSphere] Support non-clusters setup

This commit is contained in:
Shlomi Zadok 2014-11-12 13:41:28 +02:00
parent af6c7c90bc
commit 66e5521836

View file

@ -19,7 +19,7 @@ module Fog
def get_raw_clusters_from_folder(folder) def get_raw_clusters_from_folder(folder)
folder.childEntity.map do |child_entity| folder.childEntity.map do |child_entity|
if child_entity.is_a? RbVmomi::VIM::ClusterComputeResource if child_entity.is_a? RbVmomi::VIM::ComputeResource
child_entity child_entity
elsif child_entity.is_a? RbVmomi::VIM::Folder elsif child_entity.is_a? RbVmomi::VIM::Folder
get_raw_clusters_from_folder(child_entity) get_raw_clusters_from_folder(child_entity)