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
Fix INF-378 inventory subscription filter upgrade
[pti/o2.git]
/
o2ims
/
service
/
auditor
/
pserver_cpu_handler.py
diff --git
a/o2ims/service/auditor/pserver_cpu_handler.py
b/o2ims/service/auditor/pserver_cpu_handler.py
index
5ad64ca
..
ac2b50f
100644
(file)
--- a/
o2ims/service/auditor/pserver_cpu_handler.py
+++ b/
o2ims/service/auditor/pserver_cpu_handler.py
@@
-64,6
+64,10
@@
def update_pserver_cpu(
alarm_dictionary = uow.alarm_dictionaries.get(dict_id)
if alarm_dictionary:
res_type.alarmDictionary = alarm_dictionary
alarm_dictionary = uow.alarm_dictionaries.get(dict_id)
if alarm_dictionary:
res_type.alarmDictionary = alarm_dictionary
+ res_type.events.append(events.ResourceTypeChanged(
+ id=res_type.resourceTypeId,
+ notificationEventType=NotificationEventEnum.CREATE,
+ updatetime=stxobj.updatetime))
uow.resource_types.add(res_type)
else:
resourcetype_id = first['resourceTypeId']
uow.resource_types.add(res_type)
else:
resourcetype_id = first['resourceTypeId']