Skip to content

Commit

Permalink
Fix Inventory Collector has_required_role?
Browse files Browse the repository at this point in the history
The has_required_role? method wasn't calling the base
MiqWorker#has_required_role? leading to all workers in the zone running
the inventory collector.

Depends: ManageIQ/manageiq#16415
  • Loading branch information
agrare committed Nov 8, 2017
1 parent c5b0bfa commit 30a0052
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class ManageIQ::Providers::Openshift::ContainerManager::InventoryCollectorWorker
require_nested :Runner

def self.has_required_role?
!worker_settings[:disabled] && Settings.fetch_path(:ems_refresh, ems_class.ems_type.to_sym, :inventory_object_refresh)
return false unless Settings.fetch_path(:ems_refresh, ems_class.ems_type.to_sym, :inventory_object_refresh)
super
end
end

0 comments on commit 30a0052

Please sign in to comment.