Skip to content

Commit

Permalink
Add missing nodes and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Jun 30, 2017
1 parent 98e0436 commit 8792829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/presenters/tree_builder_belongs_to_hac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def x_get_provider_kids(parent, count_only)
def x_get_tree_datacenter_kids(parent, count_only)
kids = []
parent.folders.each do |child|
kids.concat([child]) if child.kind_of?(EmsFolder) && child.name == 'datastore'
next unless child.kind_of?(EmsFolder) && child.name == "host"
kids.concat(child.folders_only)
kids.concat(child.clusters)
Expand All @@ -76,7 +77,7 @@ def x_get_tree_cluster_kids(parent, count_only)
end

def x_get_resource_pool_kids(parent, count_only)
count_only_or_objects(count_only, parent.is_default? ? parent.resource_pools : [])
count_only_or_objects(count_only, parent.resource_pools)
end

def x_get_tree_folder_kids(parent, count_only = false)
Expand Down

0 comments on commit 8792829

Please sign in to comment.