From 30b79322115e947f6013a03419923cd32e3af96a Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Thu, 14 Nov 2019 11:28:09 -0500 Subject: [PATCH] metrics_capture supports ems This allows metrics_capture to support multiple targets within an ems --- .../manageiq/providers/base_manager/metrics_capture.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/manageiq/providers/base_manager/metrics_capture.rb b/app/models/manageiq/providers/base_manager/metrics_capture.rb index 1877c6b64fb..17581fde08e 100644 --- a/app/models/manageiq/providers/base_manager/metrics_capture.rb +++ b/app/models/manageiq/providers/base_manager/metrics_capture.rb @@ -1,8 +1,9 @@ class ManageIQ::Providers::BaseManager::MetricsCapture include Vmdb::Logging - attr_reader :target - def initialize(target) + attr_reader :target, :ems + def initialize(target, ems = nil) @target = target + @ems = ems end end