Skip to content

Commit

Permalink
Drop Container Component Statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiva committed Sep 27, 2017
1 parent faa137d commit 92b97ce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
3 changes: 0 additions & 3 deletions app/models/container_component_status.rb

This file was deleted.

11 changes: 1 addition & 10 deletions app/models/ems_refresh/save_inventory_container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def save_ems_container_inventory(ems, hashes, _target = nil)
child_keys = [:container_projects, :container_quotas, :container_limits, :container_nodes,
:container_builds, :container_build_pods, :persistent_volume_claims, :persistent_volumes,
:container_image_registries, :container_images, :container_replicators, :container_groups,
:container_services, :container_routes, :container_component_statuses, :container_templates,]
:container_services, :container_routes, :container_templates,]

# Save and link other subsections
child_keys.each do |k|
Expand Down Expand Up @@ -240,15 +240,6 @@ def save_container_image_registries_inventory(ems, hashes)
store_ids_for_new_records(ems.container_image_registries, hashes, [:host, :port])
end

def save_container_component_statuses_inventory(ems, hashes)
return if hashes.nil?

ems.container_component_statuses.reset

save_inventory_multi(ems.container_component_statuses, hashes, :use_association, [:name])
store_ids_for_new_records(ems.container_component_statuses, hashes, :name)
end

def save_container_conditions_inventory(container_entity, hashes)
return if hashes.nil?

Expand Down
1 change: 0 additions & 1 deletion app/models/manageiq/providers/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class ContainerManager < BaseManager
has_many :container_images, -> { active }, :foreign_key => :ems_id
has_many :persistent_volumes, :as => :parent, :dependent => :destroy
has_many :persistent_volume_claims, :foreign_key => :ems_id, :dependent => :destroy
has_many :container_component_statuses, :foreign_key => :ems_id, :dependent => :destroy
has_many :container_builds, :foreign_key => :ems_id, :dependent => :destroy
has_many :container_build_pods, :foreign_key => :ems_id, :dependent => :destroy
has_many :container_templates, :foreign_key => :ems_id, :dependent => :destroy
Expand Down

0 comments on commit 92b97ce

Please sign in to comment.