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 authored and yaacov committed Dec 10, 2017
1 parent b1aa582 commit 273e882
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::Kubernetes::ContainerManager::InventoryCollectorWorke
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 273e882

Please sign in to comment.