Skip to content

Commit

Permalink
Merge pull request #21522 from MelsHyrule/fix_cluster_all_vms
Browse files Browse the repository at this point in the history
Re-adding all_vms method
  • Loading branch information
NickLaMuro authored Oct 27, 2021
2 parents efb361d + 0774255 commit 5f7a6f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/ems_cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class EmsCluster < ApplicationRecord
has_many :vms_and_templates, :dependent => :nullify
has_many :miq_templates, :inverse_of => :ems_cluster
has_many :vms, :inverse_of => :ems_cluster
alias all_vms vms

has_many :metrics, :as => :resource # Destroy will be handled by purger
has_many :metric_rollups, :as => :resource # Destroy will be handled by purger
Expand Down

0 comments on commit 5f7a6f7

Please sign in to comment.