2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-26 19:10:30 +00:00

Support redfish event logs

This commit is contained in:
Jarrod Johnson 2019-04-22 12:54:49 -04:00
parent 6290c169f5
commit c6516f9d62
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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: