Skip to content

Commit

Permalink
Merge pull request #439 from agrare/fix_metrics_collector_worker_runn…
Browse files Browse the repository at this point in the history
…ing_invalid_creds

Fix MetricsCollectorWorker running with invalid creds

(cherry picked from commit 84eaa36)
  • Loading branch information
Fryguy committed Dec 13, 2022
1 parent c58584d commit 38037f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def friendly_name
@friendly_name ||= "C&U Metrics Collector for IKS"
end

def self.emses_in_zone
def self.all_ems_in_zone
super.select do |ems|
ems.supports_metrics?.tap do |supported|
ems.supports?(:metrics).tap do |supported|
_log.info("Skipping [#{ems.name}] since it has no metrics endpoint") unless supported
end
end
Expand Down

0 comments on commit 38037f0

Please sign in to comment.