Skip to content

Commit

Permalink
Merge pull request #14736 from carbonin/reload_ems_after_event_catche…
Browse files Browse the repository at this point in the history
…r_failure

Reload the ems object in the event catcher if we fail to start
(cherry picked from commit 3d18b43)

https://bugzilla.redhat.com/show_bug.cgi?id=1442172
  • Loading branch information
bdunne authored and simaishi committed Apr 13, 2017
1 parent c02e4ae commit 8ee9d83
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
class ManageIQ::Providers::EmbeddedAnsible::AutomationManager::EventCatcher::Runner < ManageIQ::Providers::BaseManager::EventCatcher::Runner
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::EventCatcher::Runner

def start_event_monitor
tid = super
return tid unless tid.nil?

# Get a new copy of the ems record in case the embedded ansible role changed servers
@ems.reload
nil
end
end

0 comments on commit 8ee9d83

Please sign in to comment.