From 9fc96cfee96896382be32c415ce8ed4fe844b4ca Mon Sep 17 00:00:00 2001 From: Martin Slemr Date: Wed, 22 Aug 2018 13:13:23 +0200 Subject: [PATCH] Added _log() to Inventory collector/parser --- app/models/manager_refresh/inventory/collector.rb | 2 ++ app/models/manager_refresh/inventory/parser.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/models/manager_refresh/inventory/collector.rb b/app/models/manager_refresh/inventory/collector.rb index 758a8644bf6..bee69350cdb 100644 --- a/app/models/manager_refresh/inventory/collector.rb +++ b/app/models/manager_refresh/inventory/collector.rb @@ -1,6 +1,8 @@ class ManagerRefresh::Inventory::Collector attr_reader :manager, :target + include Vmdb::Logging + # @param manager [ManageIQ::Providers::BaseManager] A manager object # @param refresh_target [Object] A refresh Target object def initialize(manager, refresh_target) diff --git a/app/models/manager_refresh/inventory/parser.rb b/app/models/manager_refresh/inventory/parser.rb index 686146d85a6..e64753f8057 100644 --- a/app/models/manager_refresh/inventory/parser.rb +++ b/app/models/manager_refresh/inventory/parser.rb @@ -2,6 +2,8 @@ class ManagerRefresh::Inventory::Parser attr_accessor :collector attr_accessor :persister + include Vmdb::Logging + def parse raise NotImplementedError, _("must be implemented in a subclass") end