Skip to content

Commit

Permalink
Merge pull request #87 from durandom/refactor/ensure_manager
Browse files Browse the repository at this point in the history
Add managers in before_create callback instead of before_validation
(cherry picked from commit 950a3d1)

https://bugzilla.redhat.com/show_bug.cgi?id=1411517
https://bugzilla.redhat.com/show_bug.cgi?id=1403011
  • Loading branch information
chrisarcand authored and simaishi committed Jan 9, 2017
1 parent 84615b2 commit 1927526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/manageiq/providers/amazon/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ManageIQ::Providers::Amazon::CloudManager < ManageIQ::Providers::CloudMana
:to => :network_manager,
:allow_nil => true

before_validation :ensure_managers
before_create :ensure_managers

supports :provisioning
supports :regions
Expand Down

0 comments on commit 1927526

Please sign in to comment.