From 0b6f48c3f7cf4997b92808e256f9f01bcd19c289 Mon Sep 17 00:00:00 2001 From: Greg Blomquist Date: Tue, 4 Apr 2017 10:26:20 -0400 Subject: [PATCH] Merge pull request #38 from AndreyMenezes/change_source_name Change source name and add physical_server_id (cherry picked from commit 77d9da2945899a171419dd2470255db03bda8a7a) --- .../physical_infra_manager/event_parser.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/models/manageiq/providers/lenovo/physical_infra_manager/event_parser.rb b/app/models/manageiq/providers/lenovo/physical_infra_manager/event_parser.rb index 636de402cd..546bf07015 100755 --- a/app/models/manageiq/providers/lenovo/physical_infra_manager/event_parser.rb +++ b/app/models/manageiq/providers/lenovo/physical_infra_manager/event_parser.rb @@ -1,14 +1,15 @@ module ManageIQ::Providers::Lenovo::PhysicalInfraManager::EventParser def self.event_to_hash(event, ems_id) event_hash = { - :event_type => event.eventID, - :source => "LXCA", - :message => event.msg, - :timestamp => event.timeStamp, - :lxca_severity => event.severity, - :lxca_cn => event.cn, - :full_data => event.to_hash, - :ems_id => ems_id + :event_type => event.eventID, + :source => "LenovoXclarity", + :physical_server_ref => event.componentID, + :message => event.msg, + :timeStamp => event.timeStamp, + :lxca_severity => event.severity, + :lxca_cn => event.cn, + :full_data => event.to_hash, + :ems_id => ems_id } event_hash