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:
parent
6290c169f5
commit
c6516f9d62
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user