Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Updated base image plus Python to 3.11
[pti/o2.git]
/
o2ims
/
service
/
auditor
/
alarm_handler.py
diff --git
a/o2ims/service/auditor/alarm_handler.py
b/o2ims/service/auditor/alarm_handler.py
index
4c7c054
..
2847a85
100644
(file)
--- a/
o2ims/service/auditor/alarm_handler.py
+++ b/
o2ims/service/auditor/alarm_handler.py
@@
-137,9
+137,10
@@
def create_by(fmobj: FaultGenericModel) -> AlarmEventRecord:
def update_by(target: AlarmEventRecord, fmobj: FaultGenericModel
) -> None:
# content = json.loads(fmobj.content)
def update_by(target: AlarmEventRecord, fmobj: FaultGenericModel
) -> None:
# content = json.loads(fmobj.content)
- target.hash = fmobj.hash
if fmobj.status == 'clear':
target.perceivedSeverity = alarm_obj.PerceivedSeverityEnum.CLEARED
if fmobj.status == 'clear':
target.perceivedSeverity = alarm_obj.PerceivedSeverityEnum.CLEARED
+
+ target.hash = fmobj.hash
target.events.append(events.AlarmEventChanged(
id=fmobj.id,
notificationEventType=AlarmNotificationEventEnum.CLEAR,
target.events.append(events.AlarmEventChanged(
id=fmobj.id,
notificationEventType=AlarmNotificationEventEnum.CLEAR,