Skip to content

Commit

Permalink
Merge pull request #401 from agrare/child_manager_dependent_destroy
Browse files Browse the repository at this point in the history
Don't dependent => destroy child_managers
(cherry picked from commit a7f916b)

https://bugzilla.redhat.com/show_bug.cgi?id=1538240
  • Loading branch information
Fryguy authored and simaishi committed Jan 24, 2018
1 parent 0d35c0a commit 183cac8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/manageiq/providers/amazon/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ class ManageIQ::Providers::Amazon::CloudManager < ManageIQ::Providers::CloudMana
has_one :network_manager,
:foreign_key => :parent_ems_id,
:class_name => "ManageIQ::Providers::Amazon::NetworkManager",
:autosave => true,
:dependent => :destroy
:autosave => true

has_many :storage_managers,
:foreign_key => :parent_ems_id,
:class_name => "ManageIQ::Providers::StorageManager",
:autosave => true,
:dependent => :destroy
:autosave => true

delegate :floating_ips,
:security_groups,
Expand Down

0 comments on commit 183cac8

Please sign in to comment.