Skip to content

Commit

Permalink
VimPerformanceState - drop ems cluster special case
Browse files Browse the repository at this point in the history
EmsCluster uses AggregationMixin
this aliases
all_vms_and_templates to the regular vms_and_templates

No need to have a special case for EmsCluster, as vms_and_templates works just fine
  • Loading branch information
kbrock committed Jul 10, 2023
1 parent b08ccb2 commit b2ab820
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/vim_performance_state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,8 @@ def capture_assoc_ids
result = {}
ASSOCIATIONS.each do |assoc|
method = if assoc == :vms
if resource.kind_of?(EmsCluster)
:all_vms_and_templates
elsif resource.kind_of?(Service)
# Service uses a virtual has_many (via ancestry)
if resource.kind_of?(Service)
:vms
else
:vms_and_templates
Expand Down

0 comments on commit b2ab820

Please sign in to comment.