Skip to content

Commit

Permalink
metrics_capture supports ems
Browse files Browse the repository at this point in the history
This allows metrics_capture to support multiple targets within an ems
  • Loading branch information
kbrock committed Nov 14, 2019
1 parent 72ffca2 commit 776741c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/models/manageiq/providers/base_manager/metrics_capture.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
class ManageIQ::Providers::BaseManager::MetricsCapture
include Vmdb::Logging

attr_reader :target
def initialize(target)
@target = target
attr_reader :target, :ems
def initialize(target, ems = nil)
if target.kind_of?(ExtManagementSystem)
@ems = target
else
@target = target
@ems = ems
end
end
end

0 comments on commit 776741c

Please sign in to comment.