diff --git a/app/models/vim_performance_state.rb b/app/models/vim_performance_state.rb index b329c64768b..49565054772 100644 --- a/app/models/vim_performance_state.rb +++ b/app/models/vim_performance_state.rb @@ -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