Skip to content

Commit

Permalink
Merge pull request ManageIQ#17708 from bdunne/17695_followup
Browse files Browse the repository at this point in the history
Followup to ManageIQ#17695
  • Loading branch information
agrare authored Jul 14, 2018
2 parents d101c79 + 7614e3e commit f07d954
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Container < ApplicationRecord
has_many :metrics, :as => :resource
has_many :metric_rollups, :as => :resource
has_many :vim_performance_states, :as => :resource
delegate :my_zone, :to => :ext_management_system
delegate :my_zone, :to => :ext_management_system, :allow_nil => true

include EventMixin
include Metric::CiMixin
Expand Down
2 changes: 1 addition & 1 deletion app/models/container_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ContainerGroup < ApplicationRecord
has_many :metrics, :as => :resource
has_many :metric_rollups, :as => :resource
has_many :vim_performance_states, :as => :resource
delegate :my_zone, :to => :ext_management_system
delegate :my_zone, :to => :ext_management_system, :allow_nil => true

virtual_column :ready_condition_status, :type => :string, :uses => :container_conditions
virtual_column :running_containers_summary, :type => :string
Expand Down
2 changes: 1 addition & 1 deletion app/models/container_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ContainerImage < ApplicationRecord

after_create :raise_creation_event

delegate :my_zone, :to => :ext_management_system
delegate :my_zone, :to => :ext_management_system, :allow_nil => true

def full_name
return docker_id if image_ref && image_ref.start_with?(DOCKER_PULLABLE_PREFIX)
Expand Down
2 changes: 1 addition & 1 deletion app/models/container_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ContainerNode < ApplicationRecord
has_many :metric_rollups, :as => :resource
has_many :vim_performance_states, :as => :resource
has_many :miq_alert_statuses, :as => :resource
delegate :my_zone, :to => :ext_management_system
delegate :my_zone, :to => :ext_management_system, :allow_nil => true


virtual_column :ready_condition_status, :type => :string, :uses => :container_conditions
Expand Down
2 changes: 1 addition & 1 deletion app/models/container_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ContainerProject < ApplicationRecord

PERF_ROLLUP_CHILDREN = :all_container_groups

delegate :my_zone, :to => :ext_management_system
delegate :my_zone, :to => :ext_management_system, :allow_nil => true

def all_container_groups
ContainerGroup.where(:container_project_id => id).or(ContainerGroup.where(:old_container_project_id => id))
Expand Down

0 comments on commit f07d954

Please sign in to comment.