From c6516f9d62d681891395c5e0489690b73882c37c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 22 Apr 2019 12:54:49 -0400 Subject: [PATCH] Support redfish event logs --- confluent_client/bin/nodeeventlog | 2 +- confluent_server/confluent/messages.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeeventlog b/confluent_client/bin/nodeeventlog index d5245e8d..419302fa 100755 --- a/confluent_client/bin/nodeeventlog +++ b/confluent_client/bin/nodeeventlog @@ -77,7 +77,7 @@ def format_event(evt): pass dscparts.append(evttext) retparts.append(' - '.join(dscparts)) - return ' '.join(retparts) + return ' '.join(retparts) + evt.get('message', '') if deletemode: diff --git a/confluent_server/confluent/messages.py b/confluent_server/confluent/messages.py index b317aa44..a90ba1bc 100644 --- a/confluent_server/confluent/messages.py +++ b/confluent_server/confluent/messages.py @@ -1192,6 +1192,7 @@ class EventCollection(ConfluentMessage): 'event': event.get('event', None), 'severity': event['severity'], 'timestamp': event.get('timestamp', None), + 'message': event.get('message', None), 'record_id': event.get('record_id', None), } if event['severity'] not in valid_health_values: