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_dev_handler.py
diff --git
a/o2ims/service/auditor/pserver_dev_handler.py
b/o2ims/service/auditor/pserver_dev_handler.py
index
7303732
..
0efe123
100644
(file)
--- a/
o2ims/service/auditor/pserver_dev_handler.py
+++ b/
o2ims/service/auditor/pserver_dev_handler.py
@@
-64,6
+64,10
@@
def update_pserver_dev(
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']
@@
-108,8
+112,7
@@
def create_by(stxobj: StxGenericModel, parent: Resource, resourcetype_id: str)\
description = "%s : A device resource of the physical server"\
% stxobj.name
resource = Resource(stxobj.id, resourcetype_id, resourcepool_id,
description = "%s : A device resource of the physical server"\
% stxobj.name
resource = Resource(stxobj.id, resourcetype_id, resourcepool_id,
- stxobj.name, parent_id, gAssetId, stxobj.content,
- description)
+ parent_id, gAssetId, stxobj.content, description)
resource.createtime = stxobj.createtime
resource.updatetime = stxobj.updatetime
resource.hash = stxobj.hash
resource.createtime = stxobj.createtime
resource.updatetime = stxobj.updatetime
resource.hash = stxobj.hash