X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fservice%2Fcommand%2Fregistration_handler.py;h=a7978f546cd9a5d91d4b6687451503824824ef36;hb=e161cae314703d7717d55099566c2d3fe112ca52;hp=e6f49043f27faf43012910b663bd470b83466789;hpb=108d56bb68007e4f71079ebd36d109fa70ee3fb3;p=pti%2Fo2.git diff --git a/o2ims/service/command/registration_handler.py b/o2ims/service/command/registration_handler.py index e6f4904..a7978f5 100644 --- a/o2ims/service/command/registration_handler.py +++ b/o2ims/service/command/registration_handler.py @@ -47,15 +47,7 @@ def registry_to_smo( logger.warning('Ocloud {} does not exists.'.format(data.id)) return logger.debug('O-Cloud Global UUID: {}'.format(ocloud.globalCloudId)) - # ocloud_dict = ocloud.serialize() - ocloud_dict = { - 'oCloudId': ocloud.oCloudId, - 'globalcloudId': ocloud.globalCloudId, - 'globalCloudId': ocloud.globalCloudId, - 'name': ocloud.name, - 'description': ocloud.description, - 'serviceUri': ocloud.serviceUri - } + ocloud_dict = ocloud.get_notification_dict() if data.notificationEventType == NotificationEventEnum.CREATE: register_smo(notifications, ocloud_dict) elif data.notificationEventType in [NotificationEventEnum.MODIFY,