Skip to content

Commit

Permalink
Fix Core Refresher if there is no ems_vmware setting
Browse files Browse the repository at this point in the history
If there is no prototype.ems_refresh setting currently the Ems Refresh
Core worker will raise an exception.
  • Loading branch information
agrare committed Jul 31, 2017
1 parent 36619c7 commit b4a17fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_ems_refresh_core_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MiqEmsRefreshCoreWorker < MiqWorker
self.required_roles = ["ems_inventory"]

def self.has_required_role?
return false if Settings.prototype.ems_vmware.update_driven_refresh
return false if Settings.prototype.try(:ems_vmware).try(:update_driven_refresh)
super
end

Expand Down

0 comments on commit b4a17fa

Please sign in to comment.