X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fservice%2Fcommand%2Fregistration_handler.py;h=0c6bbefd3923a17d39df72fc13684147a037fdff;hb=c34ab47848138150a1456be2fa9f82d7260e37b8;hp=fd3745700a29aff7d5636ef64e8a07bdd8d71678;hpb=f5fd1d3fa262b7680839a020ed63390fa72a5599;p=pti%2Fo2.git diff --git a/o2ims/service/command/registration_handler.py b/o2ims/service/command/registration_handler.py index fd37457..0c6bbef 100644 --- a/o2ims/service/command/registration_handler.py +++ b/o2ims/service/command/registration_handler.py @@ -42,7 +42,7 @@ def registry_to_smo( ocloud = uow.oclouds.get(data.id) if ocloud is None: return - logger.debug('O-Cloud Global UUID: {}'.format(ocloud.globalcloudId)) + logger.debug('O-Cloud Global UUID: {}'.format(ocloud.globalCloudId)) ocloud_dict = ocloud.serialize() if data.notificationEventType == NotificationEventEnum.CREATE: register_smo(uow, ocloud_dict) @@ -79,10 +79,9 @@ def call_smo(reg_data: dict): } callback_data = json.dumps({ - 'consumerSubscriptionId': reg_data['globalcloudId'], - 'notificationEventType': 'CREATE', - 'objectRef': config.get_api_url(), - 'postObjectState': reg_data, + 'globalCloudId': reg_data['globalCloudId'], + 'oCloudId': reg_data['oCloudId'], + 'IMS_EP': config.get_api_url(), 'smo_token_data': smo_token_info }) logger.info('URL: {}, data: {}'.format(