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']
description = "%s : A port resource of the interface"\
% 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